Dad2016 писал(а):
Делаю запрос в БД SELECT id, number, data, job, survey, dop14 FROM note WHERE documentation = '%1' ORDER BY number;
Попробуй
SELECT id, number, data, job, survey, dop14 FROM note WHERE documentation = '%1' ORDER BY cast(number AS integer);