Fixed examples and added sort to example.html.