dashboard_app/widget_pool.py
def get_widgets_sorted(self):
        """Returns the widgets sorted by position."""
        result = []
        for widget_name, widget in self.get_widgets().items():
            result.append((widget_name, widget, widget.position))
        result.sort(key=lambda x: x[2])
        return result
def get_widgets_sorted(self):
        result = []
        for widget_name, widget in self.get_widgets().items():
            result.append((widget_name, widget, widget.position))
        result.sort(key=lambda x: x[2])
        return result
def get_widgets_sorted ( self ) : result = [ ] for widget_name , widget in self . get_widgets ( ) . items ( ) : result . append ( ( widget_name , widget , widget . position ) ) result . sort ( key = lambda x : x [ 2 ] ) return result
Returns the widgets sorted by position.
Returns the widgets sorted by position .