items ordering:
 * properly order on columns refering to a related model
 * NULLs are placed first or last depending on sort direction
don't order NULLs if engine is sqlite