I agree with AliGW. It sounds like you would not really need VBA for this.
It sounds like your issue is arising from not selecting all the data before you sort.
Please see this image for reference.
Select ALL of your data (including the hidden cells), then go to Data> Sort> Sort By (Column L) - Sort On (Cell Values) - Order (Smallest to Largest)> OK
Capture02.JPG
---
You also have the option to record your own macros so you can see how they work, just in case you did not know about this. This tool is under Developer> Record.
Recording the example above yielded this result.
Bookmarks