Change order of Sales Order Lines

HI,

I have a request from a client to sort the Sales Order Lines detail section by Item Code.

I feel like I should be able to do this with a script, but not clear on what Object to reference.  Can someone give me a hand, perhaps point me in the right direction, or even advise if it isn't possible.

Here is what I was trying:

Library:  SO_SalesORder.m4l
Panel PLINES

Post Load event 

Something along the lines of this, just need the two underscore areas replaced with correct values
 :

Any help would be appreciated.