インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

sort()

   
Examples  
float a[] = { 3.4, 3.6, 2, 0, 7.1 }; 
sort(a); 
for (int i = 0; i < a.length; i++) { 
  println(a[i]); 
} 


String s[] = { "deer", "elephant", "bear", "apple", "car" }; 
sort(s); 
for (int i = 0; i < s.length; i++) { 
  println(s[i]); 
} 

Description  

数字の配列を小さい数から大きい数に並べ替える。また、文字の配列をアルファベット順にする。

 

   
Syntax  
sort(array)
   
Parameters  
array   文字、整数、浮動少数点数の配列。
   
Usage   Web & Application
   
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas