Refactored issues ordering.
Add tests for ordering methods on tags service.