amschaal / glims

3 stars 0 forks source link

Inconsistent Sorting #65

Closed monicabritton closed 5 years ago

monicabritton commented 5 years ago

If you're sorting on something that doesn't have a distinct order, sort is inconsistent.

(Monica noticed same projects on two consecutive pages.)

Suggestion: Always add primary key as last sorting key.

amschaal commented 5 years ago

Fixed this on the client side. Added default_order parameter to data table library. By setting default_order to 'id', it will sort lastly by id, breaking any ties.