SQLite закрывает значение
SELECT * FROM table
ORDER BY ABS(value_to_compare - column.field)
Enchanting Elephant
SELECT * FROM table
ORDER BY ABS(value_to_compare - column.field)