- updated sorting