| Index: sky/examples/stocks-fn/companylist.dart
|
| diff --git a/sky/examples/stocks/companylist.sky b/sky/examples/stocks-fn/companylist.dart
|
| similarity index 99%
|
| copy from sky/examples/stocks/companylist.sky
|
| copy to sky/examples/stocks-fn/companylist.dart
|
| index 998344b987ba224d421b56f47b2d4e9f0e83e772..736f3aacc22ccc295e59bc18779d2499b9b551f5 100644
|
| --- a/sky/examples/stocks/companylist.sky
|
| +++ b/sky/examples/stocks-fn/companylist.dart
|
| @@ -1,5 +1,4 @@
|
| -<script>
|
| -import "dart:math";
|
| +part of stocksapp;
|
|
|
| // Snapshot from http://www.nasdaq.com/screening/company-list.aspx
|
| // Fetched 2/23/2014.
|
| @@ -3001,6 +3000,7 @@ class StockOracle {
|
|
|
| StockOracle.fromCompanyList(List<List<String>> list) {
|
| stocks = list.map((fields) => new Stock.fromFields(fields)).toList();
|
| + stocks.sort((a, b) => a.symbol.compareTo(b.symbol));
|
| }
|
|
|
| Stock lookupBySymbol(String symbol) {
|
| @@ -3013,5 +3013,3 @@ class StockOracle {
|
| }
|
|
|
| final StockOracle oracle = new StockOracle.fromCompanyList(_kCompanyList);
|
| -
|
| -</script>
|
|
|