• You store the number as a text representation? Have you tested it with other values? I think you may have just got lucky here?

    Yes, Two is "higher" than One ("T" > "O") but what if the 2 highest (equal) records are Two and Three? 3 is higher than 2 but "Tw" is > Th"

    Dird


    Dird