Add graph sorting

Adds 3 buttons to the Graphs index and Dashboard pages to sort graphs by name, either ascending or descending or by their ID.