added sort option, still working on key increase
practice, to be deleted