Issue #3: Searching/sorting items by unit cost/list price yields wrong results.
Misc refactorings.