Cakephp 3 sortBy DESC 2 are out of order
There is a collection and I'd like it to return in DESC order. $salaryYears = $collection ->match(['staff_position_id' => 1]) ->extract('personnel_profile.title') ->sortBy('id', SORT_DESC); It returns: salaryYears (array) 4 FY 2013 5 FY 2012 3 FY 2014 2 FY 2015 1 FY 2016 0 FY 2017 The years 2012 and 2013 are flowed. I did try using "personnel_profile.year" as the sortBy and I still get the same shit. If I leave it as the default ASC order everything is fine. Any suggestions?
1
# Users who requested the code (so far)
$3
Suggested price from buyers at which they’d buy
Potential revenues from requesters (actual revenues can be significantly higher)
Time of last request:on Jun 26, 2018
Tags:cakephp, php
If you own such codes, please set up an offer and then invite users to it by clicking on «Invite to offer».
If you’re also be willing to buy those codes then click on «I’d also buy it» (no commitment to buy, but please only click when you’re serious about it).
Tell people about Sellcodes and get 20-40% on every resulting sale!