SaschaWillems / vulkan.gpuinfo.org

Front-End and Back-End for the Vulkan Hardware Database
https://vulkan.gpuinfo.org
GNU Affero General Public License v3.0
23 stars 4 forks source link

Sort the API version by comparing, not lexicographically #2

Closed GabrielMajeri closed 6 years ago

GabrielMajeri commented 7 years ago

Right now, the Api versions are compared as strings, instead of element by element. This makes ordering by version sort incorrectly.

Here is an example of sorting by API version.

sort

I would expect 1.0.26 to come above 1.0.3, but it's below, because the string "1.0.2" is below "1.0.3".