solved absolute sorting