Ok, the problem is probably in the attribute type. The original data is as a text, not a number, so the filter sort by alphabet, not by number.
The easiest way how to fix it is sort the filter by ID and added the correct data to IDs lines in database.