Use standard lists:usort instead of custom uniq