Fixes Hardware Ordering bug. Resolves #263 (tests fail)
Fixes tests/adds tests to cover new cases
Merge pull request #264 from sudorandom/hardware-order-prices

Fixes Hardware Ordering bug