def layers_selection(self):
        if self.font is not None:
            layer_names = []
            selection = layers_list.getSelection()
            for i in selection:
                if len(self.layer_names) < i:
                    layer_names.append(self.layer_names[i])
            self.layer_names = layer_names
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/dialogs/glyphs/layers_align.py/alignLayersDialog.layers_selection/swapped operands of `<`