You could add an integer field called, for example, weight, and use it with ORDER BY clause.
this would be your original dataset:
Recnr | File | weight
1 | img001.jpg | 0
2 | img002.jpg | 0
5 | img005.jpg | 0
6 | img006.jpg | 0
And to get one row higher, you make it weight less
Recnr | File | weight
1 | img001.jpg | 0
2 | img002.jpg | -10
5 | img005.jpg | 20
6 | img006.jpg | 0
Then you SELECT * ORDER BY weight ASC to make the lightest records appear at the top.
And the result would be
Recnr | File | weight
2 | img002.jpg | -10
1 | img001.jpg | 0
6 | img006.jpg | 0
5 | img005.jpg | 20