Sort by values

ORDER BY statement of SQLite sorts values as string, so the result of
sort is incorrect.  By this change, columns with '-val' postfix are
recognized as value.