Notice in the screenshot, that sorting by a number or text field with a number is doing lexicographic sorting, which means basically the language treats the variables as strings and compares character by character ( "200" is greater than "19999" because '2' is greater than '1' ).
This should probably be fixed, as documentation (a cockpit use case) is often numbered in various ways:
I don’t know about the work in progress but given that there was no reply to your request yet I’d assume there will most likely be no timely “fix” for this matter.
A “fix” for your situation could be to come up with an additional field that is auto-updated on create/edit and keeps a “sortable” string representation of the version or the numerical value in question.
For a “normal” integer value this is quite simple by dividing it by “a large number”
For a more complex value like a “version code” you might follow a similar approach by dividing each individual element and then concat the results like e.g.