properly working sorting, plus added compass
added compass