total rewrite- add sort menu

replicate functionality designed by xShaftx