Hi,
While inspecting a bag, in the Occurrences tab, I would like a numeric sorting of the occurrences column.
For now it is an alpha-numeric sort which is not practical with numbers >= 10
So, I saw that is it possible to add a sortedBy: block on the column (through column:evaluated:sortedBy:).
Consequently, I changed Bag>> gtInspectorOccurrencesIn: :
column: 'Occurences'
evaluated: [ :each | self occurrencesOf: each ]
+ sortedBy: [ :a :b | a <= b ];
beMultiple;
I expected a sort in the occurrence column, but the sort is made in the item column.. and not apply on the occurrences one!?
Is it a known bug ?
Example dataset: #( 1 11 11 11 1 1 1 11 1 1 1 1 1 1 1 1 1 1 1 1 11 1 1 1 1 1 11 1 1 1111 2 00 2001 00 010 10 1000) asBag
BTW, I don’t really understand the difference of sort if we click on the Item or the Occurrences label…
Thanks in advance,
Vincent