Make sort utility function. finished WTF model.