implement easier solutions for sorting