Class NaturalOrderComparator

  • All Implemented Interfaces:
    Comparator

    public class NaturalOrderComparator
    extends Object
    implements Comparator
    This is an updated version with enhancements made by Daniel Migowski, Andre Bogus, and David Koelle. Updated by David Koelle in 2017. To use this class: Use the static "sort" method from the java.util.Collections class: Collections.sort(your list, new AlphanumComparator());
    • Constructor Detail

      • NaturalOrderComparator

        public NaturalOrderComparator()
    • Method Detail

      • main

        public static void main​(String[] args)
        Shows an example of how the comparator works. Feel free to delete this in your own code!