puhep / pudb

Purdue CMS FPix Database
0 stars 0 forks source link

Sorting 'On Module' HDI Does Not Work #64

Closed NickHinton closed 9 years ago

NickHinton commented 9 years ago

When I try to sort HDI in the 'on module' bin the displayed data doesn't change. I tried sorting by what module is attached, the modified date, and assembly location.

khan62 commented 9 years ago

The problem was a quirk with the PHP function array_multisort, which sorts multi-dimensional arrays. You have to include as parameters every array that is to be sorted, or else it goes haywire. I recently added a new column to a 2-dimensional array that was being sorted, but I didn't include it into some of the existing array_multisort functions, so they acted improperly.

The problem is now fixed.