Comment 3 for bug 1722387

Revision history for this message
Jeff Davis (jdavis-sitka) wrote :

Working branch user/jeffdavis/lp1752983-column-picker-sort-alpha has a fix that sorts the column picker alphabetically.

However, I think pure alphabetical sort is less than ideal. On the checkout grid, for example, you end up with two "Barcode" entries next to each other in the column picker; one is for patron barcode and the other is for item barcode, but you can only tell the difference by hovering over and seeing the tooltip.

I wonder if it would be better to group them into sections, e.g. "User" and "Item" for the checkout grid, with menu items alphabetized within each group. An easy approach would be to sort by idlclass, then label:

<li ng-repeat="col in columns | orderBy:['idlclass','label']">

But this is confusing unless you add a header for each IDL class, which is a little trickier. You also risk putting the most useful/most used entries down at the bottom of the list. The discussion in bug 1669866 may be relevant here.