TinySort icon indicating copy to clipboard operation
TinySort copied to clipboard

Sorting on Roman numerals

Open EinfachAleks opened this issue 5 years ago • 1 comments

Hi, I have a question.

How can I sort the following list of Roman numerals?

https://jsfiddle.net/3r7vpd95/7/

EinfachAleks avatar Apr 29 '19 20:04 EinfachAleks

You can convert those romans to integers, and use those integers to sort with tinysort. You can find some ways to convert from roman to integer here: https://stackoverflow.com/questions/49659711/roman-to-integer-in-js-why-it-only-convert-the-first-character

yor-so avatar Mar 10 '21 21:03 yor-so