close #166, close #151 extract sort dropdown to layout and add sorting to orders