ADDED: sorting with NULL value