tests for ordering (thanks @jerith)