graph sorted data