הודעה: כל הפרויקטים הלא מסחריים שנרשמו לשימוש ב-Earth Engine לפני 
15 באפריל 2025 חייבים 
לאמת את הזכאות לשימוש לא מסחרי כדי לשמור על הגישה. אם לא תאמתו את החשבון עד 26 בספטמבר 2025, יכול להיות שהגישה שלכם תושעה.
  
        
 
       
     
  
  
  
    
  
  
  
    
      ee.FeatureCollection.sort
    
    
      
    
    
      
      קל לארגן דפים בעזרת אוספים
    
    
      
      אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
  
מיון אוסף לפי הנכס שצוין.
הפונקציה מחזירה את האוסף הממוין.
| שימוש | החזרות | 
|---|
| FeatureCollection.sort(property, ascending) | אוסף | 
| ארגומנט | סוג | פרטים | 
|---|
| זה: collection | אוסף | מופע האוסף. | 
| property | מחרוזת | המאפיין שלפיו יתבצע המיון. | 
| ascending | בוליאני, אופציונלי | האם למיין בסדר עולה או יורד.  ברירת המחדל היא true (סדר עולה). | 
  
  
  דוגמאות
  
    
  
  
    
    
  
  
  
  
    
    
    
      עורך הקוד (JavaScript)
    
    
  // FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
             .filter('country_lg == "Belgium"');
print('Belgium power plants in ascending order by capacity',
      fc.sort('capacitymw'));
print('Belgium power plants in descending order by capacity',
      fc.sort('capacitymw', false));
  
    
  
  
    
  
  
  
  
    
  
    
  הגדרת Python
  מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף 
    Python Environment.
  import ee
import geemap.core as geemap
  
    
    
      Colab (Python)
    
    
  # FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
    'country_lg == "Belgium"')
display('Belgium power plants in ascending order by capacity:',
        fc.sort('capacitymw'))
display('Belgium power plants in descending order by capacity:',
        fc.sort('capacitymw', False))
  
  
  
  
  
 
  
    
    
      
       
    
    
  
  
  אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
  עדכון אחרון: 2025-10-30 (שעון UTC).
  
  
  
    
      [null,null,["עדכון אחרון: 2025-10-30 (שעון UTC)."],[],["The `sort` method arranges a collection by a given property. It takes the property name (string) as a required argument and an optional boolean `ascending` (defaulting to `true`) to specify the sort order.  The method returns the sorted collection.  Examples demonstrate sorting a FeatureCollection of Belgian power plants by 'capacitymw' in both ascending and descending order. The method works both in javascript and Python.\n"]]