lexical sorting changed to numeric sorting