Make sort conditions portable across databases  - IFNULL is a mysql function, COALESCE is standard SQL
Make sort conditions portable across databases
 - IFNULL is a mysql function, COALESCE is standard SQL

downsider/reposition-sql,silktide/reposition-sql