Working on sort interface