Name

sortValuesReverse()

Class

StringDict

Description

Sort by values in descending order

Examples

  • StringDict inventory;
    
    void setup() {
      size(200, 200);
      inventory = new StringDict();
      inventory.set("flour","white");
      inventory.set("coffee","black");
      inventory.set("tea","green");
      println(inventory);
      inventory.sortValuesReverse();
      println(inventory);
    }
    
    

Syntax

  • .sortValuesReverse()

Return

  • void