Add correct sort (double and gaps)