fixed a minor sort typo
answer for graph 5