 package
 {
+    import com.kemsky.$;
     import com.kemsky.impl.Stream;
     import com.kemsky.impl.curry;
     import com.kemsky.impl.filters._;
+    import com.kemsky.impl.filters.add;
     import com.kemsky.impl.filters.eq;
     import com.kemsky.impl.filters.ge;
     import com.kemsky.impl.filters.gt;
-    import com.kemsky.$;
     import com.kemsky.impl.filters.prop;
     import com.kemsky.impl.filters.subtract;
-    import com.kemsky.impl.filters.add;
 
     import flash.utils.Dictionary;
 

            for (var k:int = 0; k < flatMap.length; k++)
            {
                assertEquals(flatMap[k], 3);
            }
        }

        [Test]
        public function testSortOn():void
        {
            var s:Stream = new Stream();
            s.push(new Item("lettuce", 1.49));
            s.push(new Item("spinach", 1.89));
            s.push(new Item("asparagus", 3.99));
            s.push(new Item("celery", 1.29));
            s.push(new Item("squash", 1.44));

            s.sortOn("name");

            s.sortOn("price", Array.NUMERIC | Array.DESCENDING);

            var val:Number = s[0].price;
            for (var i:int = 0; i < s.length; i++)
            {
                assertTrue(val >= s[i].price);
                val = s[i].price;
            }
        }



    import org.flexunit.asserts.assertEquals;
    import org.flexunit.asserts.assertFalse;

    public class TestStream
    {
