emxSortNumericAlphaLarger |
This JPO comparator can be used to sort find
numbers. The compare method works this way:
- If both objects are
numbers, does a numeric compare.
- If both objects are alphanumeric,
does a string compare.
- If one object is a number and the other
is alphanumeric, then Alphanumeric > Number.
The program first
considers pure alphabetics as well as alphanumeric strings as alpha for
sorting, then looks for pure numerics and sorts them. |
emxSortNumericAlphaSmaller |
This JPO comparator can be used to sort find
numbers. The compare method works this way:
- If both objects are
numbers, does a numeric compare.
- If both objects are alphanumeric,
does a string compare.
- If one object is a number and other alphanumeric,
then Number > Alphanumeric.
|