evanmiller/boss_db — pull request #130 by entronic (2013-10-20 03:46:33+00:00)
Title: Fixed sorting by non-text fields in Tokyo Tyrant adapter.

All sorting in Tokyo Tyrant was being performed with `str_ascending` or `str_descending`. In the case conditions, you intended `Type` to be a new variable, containing the typespec of the sort field, but `Type` was already declared in the function definition, so numeric field types were never properly matched.

Fixed by changing `Type` to `SortType` within the case conditions.