In place sort of a tight integer sequence