Finished functionality of sort by category.
Merge pull request #23 from atengel/master

Finished functionality of sort by category.