title: Google Earth Engine Filtering
body: <p>I want to filter and select particular images in a collection in Google Earth Engine?</p>
  
  <pre><code>var l51990 = ee.ImageCollection('LANDSAT/LT5_L1T_TOA')
  .filterBounds(table)   
  .filterDate('1990-01-01','2013-01-01')  
  .sort('CLOUD_COVER');
  </code></pre>
  
  <p>I would like to select the image with least cloud cover per year from 1990 to 2013.</p>
  
  <p>Is there a clean way to do this without repeating that block of code, over and over?</p>