Added test cases for sorted query.
Added query order.
Simplified query orders to type enum; modified ModelQuery and QueryBuilder.
Changed the feature key word to 'order'; added order logic to user models.
Completed constructor for ModelQuery.
Completed ordered query for non-mock database model.
Updated embedded Ruby template files.
Autogenerated all database_1 java files; passed all tests.
Minor format modification; deleted extra space.
Deleted one more empty line.
Refactored find(ModelQuery) and findWithOrder(ModelQuery).
Finished order query for mock database model by comparator.
Added manual impl and mock_impl file for the update of erb files.
Passed all tests.
Finished erb file update and format checking.
Fixed the comparator for mock db model; added test cases for decimals.
Replaced individual class checks with a single Comparable check in the mock model comparator.
Deleted unused methods; removed indirect call in order().
tesst
test2