-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[datatables] Datatables should sort Quantity data numerically #831
Labels
Comments
Merged
The latest commit did not fix the issue for us. |
Hmm in that case, may I suggest inserting a |
alistair3149
added a commit
to alistair3149/SemanticResultFormats
that referenced
this issue
Nov 23, 2024
Instead of assigning HTML directly as data, we can use assign an object with the following keys: - display - The display value of the data (same as what we had) - filter - Value used for filtering (e.g. SearchBuilder) - order - Value used for sorting This will make DataTables easier to expand in the long run. Since we can assign different attributes to the data. Also fixes SemanticMediaWiki#831
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup
Issue
Quantity
type properties are sorted alphabetically instead of numerically in datatable, which is unexpected by the users.Steps to reproduce
Quantity
typeExpected result:
The datatable should be sorted by that property numerically.
Observed result:
The datatable is sorted by that property alphabetically.
Example page with the issue: https://starcitizen.tools/Gun
The
Damage
,Range
, andMuzzle velocity
properties have theQuantity
type.The text was updated successfully, but these errors were encountered: