Webapp search

Why not just use direction == Direction.DESC instead of converting to string?