All 3 sorting methods implemented