Make method for sorting dictionary keys static