convnum
    Preparing search index...

    Function compareNumTypeOrder

    • Compare two num types based on their order in the VALID_NUM_TYPES array

      Parameters

      • a: NumType

        The first num type to compare

      • b: NumType

        The second num type to compare

      Returns number

      A negative value if a is before b, a positive value if a is after b, or 0 if they are the same

      numTypes.sort((a, b) => numTypeOrderCompare(a, b))
      

      VALID_NUM_TYPES order:

      1. decimal
      2. latin_letter
      3. month_name
      4. day_of_week
      5. greek_letter
      6. greek_letter_english_name
      7. roman
      8. chinese_words
      9. chinese_financial
      10. chinese_heavenly_stem
      11. chinese_earthly_branch
      12. chinese_solar_term
      13. cyrillic_letter
      14. hebrew_letter
      15. binary
      16. octal
      17. hexadecimal
      18. arabic
      19. english_cardinal
      20. english_words
      21. french_words
      22. astrological_sign
      23. nato_phonetic