Implemented your sort method, started to implement search

Your sort-thing works like a charm! Good job!