correcting sort to be numeric