simplyifying sorting