Grouped and sorted all global variables by type.