fix fetch and sort example