added missing vector-sort that caused extra positions