Fix for MONDRIAN-1391. Some DBs cannot order the nulls when dealing with virtual cubes because the union of two queries require the ordinal of the column in the order clause, but you can't use an ordinal inside of a function. Sql Server is one of them.