D-PLACE / dplace2

clld app serving the D-PLACE database
Apache License 2.0
7 stars 2 forks source link

Values of ordinal variables should sort by numeric value #9

Closed xrotwang closed 4 years ago

xrotwang commented 5 years ago

For ordinal variables, the numeric value (in float_value) should be used for sorting, but the text value should be displayed in the Datapoints table.

xrotwang commented 4 years ago

Seems to be the case, see https://github.com/clld/dplace2/blob/11a96e510d264cf372b2370001ca90c50c25cea5/dplace2/datatables.py#L205