Beispiel #1
0
 def sort(self):
     """
     This method sorts the table by the first column.
     """
     dic = self.__data_as_dict()
     dic = Converter.group_dict(dic)
     self.__set_sheet_data(dic)
Beispiel #2
0
 def test_grouped_dict(self):
     res = Converter.group_dict({"b": 1, "a": 2, "exif_version": 22})
     self.assertEqual({"exif_version": 22, "a": 2, "b": 1}, res)
Beispiel #3
0
 def grouped_dict(self) -> dict:
     """
     Returns a dictionary with groups, where every group is sorted.
     """
     return Converter.group_dict(self.dict())