Reference+
Name
sortValues()
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.sortValues(); println(inventory); }
Syntax
- .sortValues()
Return
- void

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.