Skip to content

Instantly share code, notes, and snippets.

@jaredhoyt
Created October 10, 2010 15:29
Show Gist options
  • Save jaredhoyt/619327 to your computer and use it in GitHub Desktop.
Save jaredhoyt/619327 to your computer and use it in GitHub Desktop.
Before
idnamehelpexclusivesortlftrghtparent_idcreatedmodifieddeleted
1Products(null)0011600000-00-00 00:00:000000-00-00 00:00:000
2Hardware(null)0021510000-00-00 00:00:000000-00-00 00:00:000
3Hinges(null)003420000-00-00 00:00:002010-10-09 18:53:160
4Locks(null)0151020000-00-00 00:00:002010-10-09 18:53:160
5Cylindrical Locks and Strikes(null)006740000-00-00 00:00:002010-10-09 11:33:410
6Mortise Locks and Strikes(null)018940000-00-00 00:00:000000-00-00 00:00:000
7Flush Bolts(null)02111220000-00-00 00:00:002010-10-09 18:53:160
8Rim Exit(null)03131420000-00-00 00:00:002010-10-09 18:53:160
After
idnamehelp_textexclusivesortlftrghtparent_idcreatedmodifieddeleted
1Products(null)009912200000-00-00 00:00:000000-00-00 00:00:000
2Hardware(null)0010012110000-00-00 00:00:000000-00-00 00:00:000
3Hinges(null)009910020000-00-00 00:00:002010-10-09 18:53:160
4Locks(null)0110711220000-00-00 00:00:002010-10-09 18:53:160
5Cylindrical Locks and Strikes(null)00858640000-00-00 00:00:002010-10-09 11:33:410
6Mortise Locks and Strikes(null)0110810940000-00-00 00:00:000000-00-00 00:00:000
7Flush Bolts(null)02606120000-00-00 00:00:002010-10-09 18:53:160
8Rim Exit(null)0311711820000-00-00 00:00:002010-10-09 18:53:160
$this->ProductFolder->reorder(array(
'id' => $id,
'field' => 'ProductFolder.sort'
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment