I've got a grid of Sales Orders, that I'd like to order by descending value of their RefNumber field (aka Sales Order #).
I'd assume that when I order these SOs by descending value, they would organize themselves based on the numeric value of their RefNumber. So the order should be something like 100002, 100001, 100000, 9999, 9998, 9997, etc. (My old QB Sales Orders are 4 digits, while the new Method SOs are set as 6 digits to avoid confusion).
But this is not the case: my 6 digit numbers are actually ranked near the bottom, just above 1000 and below 1001. I'm guessing it is ordering itself alphabetically (or alphanumerically), because the RefNumber field type is 'text', not 'integer'.
I know that my Sales Order RefNumber's will all be pure integers, but I'm uncertain whether I should just delete the current RefNumber field (if QB would even let me) and replace it with an Integer field, because I'll lose all the previous RefNumbers. (I don't have any real Method SO's, so technically I could just resynch all my QB SO info back to Method after deleting the field.. is this a viable option?)
What is the best way to change the data type from text to integer, and preserve the old data? Or, for the more direct solution, how can I get the grid ordering mechanism to order the field like they were numbers, and not text?