[WIP] Implemented sorting abilities

Will fix #44 when tests will be written.