Skip to content
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

Deck Builder sorting integers as strings #1913

Open
MMOtte opened this issue Dec 4, 2019 · 2 comments
Open

Deck Builder sorting integers as strings #1913

MMOtte opened this issue Dec 4, 2019 · 2 comments

Comments

@MMOtte
Copy link

MMOtte commented Dec 4, 2019

When sorting cards in the Deck Builder, and trying to do ascending/descending sort on a column with numbers, it sorts as if it was sorting strings, by sorting the leftmost digit first, creating "sorted" sequences such as 1, 11, 2, 25, 3, etc.

Example

NOTE: This is while playing Warhammer 40k Conquest, so the issue might be limited to the way the database of cards is set up for this specific plugin, with the relevant fields being typed "String" instead of "Integer", or it might be lack of client support for proper integer sorting, unsure of that.

@Wirox
Copy link

Wirox commented Dec 4, 2019

It's specific to Conquest; OCTGN itself supports Integer fields with proper sorting. You might want to contact the game's developer instead.

@BenMatteson
Copy link
Contributor

it would probably be a good choice to get the string sorting algorithm to sort integer strings better, but this is definitely caused by those values being defined as strings rather than integers, which is supported.

there are apparently issues with them currently though, see #1696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants