Monday, January 28, 2019

Sort

private var dentists:Array = ["Denys", "Flauben", "Doctore"];

dentists.sort(Array.ASCENDING); // Flauben, Doctore, Denys;

dentists.sort(Array.DESCENDING); //Denys, Doctore, Flauben;

dentists.sort(Array.CASE_SENSITIVE); //Denys, Doctore, Flauben;

No comments:

Post a Comment