Code fixes

- Changed so results in ascending order
- Fixed typo