code: def _reorderForPreference(themeList, preferredThemeName):
      
      for theme in themeList:
          if preferredThemeName == theme.themeName:
              themeList.remove(theme)
              themeList.insert(0, theme)
              return
docs: Re-order the input themeList according to the preferred theme.
  
      Returns None.