Lines tab Items sorting, etc...

Lines tab must show the items in the same order as they were entered
(sort by ID not ItemCode). Other misc / minor changes.