Simplify the attributes '<' comparison function.