parameters: (self, s)
return_statement: return "".join(result)
docstring: :type s: str
          :rtype: str
docstring_summary: :type s: str
          :rtype: str
docstring_tokens: : type s : str : rtype : str
function: def sortString(self, s):
          """
          :type s: str
          :rtype: str
          """
          result, count, desc = [], collections.Counter(s), False
          while count:
              for c in sorted(count.keys(), reverse=desc):
                  result.append(c)
                  count[c] -= 1
                  if not count[c]:
                      del count[c]
              desc = not desc
          return "".join(result)
function_tokens: def sortString ( self , s ) : result , count , desc = [ ] , collections . Counter ( s ) , False while count : for c in sorted ( count . keys ( ) , reverse = desc ) : result . append ( c ) count [ c ] -= 1 if not count [ c ] : del count [ c ] desc = not desc return "" . join ( result )