Fix ordering for search by tags