made sorting methods static