# Path: boris/utilities.py
# def sorted_keys(d: dict) -> list:
#     """
#     return list of sorted keys of provided dictionary
# 
#     Args:
#         d (dict): dictionary
# 
#     Returns:
#          list: dictionary keys sorted numerically
#     """
#     return [str(x) for x in sorted([int(x) for x in d.keys()])]


from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from boris.config import *
from boris.utilities import sorted_keys
import re
                for j in range(self.modifiers_dict[idx]["widget"].count()):
                    if self.modifiers_dict[idx]["widget"].item(j).checkState() == Qt.Checked:
                        self.modifiers_dict[idx]["selected"].append(
                            re.sub(" \(.*\)", "", self.modifiers_dict[idx]["widget"].item(j).text()))

                if not self.modifiers_dict[idx]["selected"]:
                    self.modifiers_dict[idx]["selected"].append("None")

            if self.modifiers_dict[idx]["type"] == SINGLE_SELECTION:
                for item in self.modifiers_dict[idx]["widget"].selectedItems():
                    self.modifiers_dict[idx]["selected"].append(re.sub(" \(.*\)", "", item.text()))

            if self.modifiers_dict[idx]["type"] == NUMERIC_MODIFIER:
                self.modifiers_dict[idx]["selected"] = self.modifiers_dict[idx]["widget"].text(
                ) if self.modifiers_dict[idx]["widget"].text() else "None"
        '''
        for widget in self.children():
            if widget.objectName() == "lw_modifiers_classic":
                for item in widget.selectedItems():
                    modifiers.append(re.sub(" \(.*\)", "", item.text()))
            if widget.objectName() == "lw_modifiers_from_set":
                for idx in range(widget.count()):
                    if widget.item(idx).checkState() == Qt.Checked:
                        modifiers.append(widget.item(idx).text())
        '''

        return self.modifiers_dict

    def pbOK_clicked(self):


# Path: boris/utilities.py
# def sorted_keys(d: dict) -> list:
#     """
#     return list of sorted keys of provided dictionary
# 
#     Args:
#         d (dict): dictionary
# 
#     Returns:
#          list: dictionary keys sorted numerically
#     """
#     return [str(x) for x in sorted([int(x) for x in d.keys()])]


# Path: boris/select_modifiers.py
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from boris.config import *
from boris.utilities import sorted_keys
import re

                for j in range(self.modifiers_dict[idx]["widget"].count()):
                    if self.modifiers_dict[idx]["widget"].item(j).checkState() == Qt.Checked:
                        self.modifiers_dict[idx]["selected"].append(
                            re.sub(" \(.*\)", "", self.modifiers_dict[idx]["widget"].item(j).text()))

                if not self.modifiers_dict[idx]["selected"]:
                    self.modifiers_dict[idx]["selected"].append("None")

            if self.modifiers_dict[idx]["type"] == SINGLE_SELECTION:
                for item in self.modifiers_dict[idx]["widget"].selectedItems():
                    self.modifiers_dict[idx]["selected"].append(re.sub(" \(.*\)", "", item.text()))

            if self.modifiers_dict[idx]["type"] == NUMERIC_MODIFIER:
                self.modifiers_dict[idx]["selected"] = self.modifiers_dict[idx]["widget"].text(
                ) if self.modifiers_dict[idx]["widget"].text() else "None"
        '''
        for widget in self.children():
            if widget.objectName() == "lw_modifiers_classic":
                for item in widget.selectedItems():
                    modifiers.append(re.sub(" \(.*\)", "", item.text()))
            if widget.objectName() == "lw_modifiers_from_set":
                for idx in range(widget.count()):
                    if widget.item(idx).checkState() == Qt.Checked:
                        modifiers.append(widget.item(idx).text())
        '''

        return self.modifiers_dict

    def pbOK_clicked(self):


        for idx in sorted_keys(self.modifiers_dict):