Ideally, the measurement table would be in the same ordering as the thumbnails. Alternatively, it would be always ordered either by name, or by time of import.
Currently, neither of those orderings is used: