I want to sort lines on Purchase Agreement Form (line view) → Purchase Agreement Lines.
Sorting is required based on location (A-Z) and then unit price (Largest to Smallest).
I want to add button to sort lines based on above criteria and after sorting changes should be saved. So that next time lines appear in same order.
How can I implement this functionality.