fixed ID sorting