lexical sorting added; dates are still integers, longs needed