sorting stocks examples...

Example #1
$ python stocks.py

==================================================
 SYMB    OPEN    HIGH     LOW   CLOSE   VOLUME  ADJCLS %CHANGE
 BOSC    3.23    4.74    3.12    4.73   882300    4.73  46.4
CRMBW    0.07    0.09    0.07    0.09    19500    0.09  28.6
 CNIT    1.24    1.69    1.20    1.47   314000    1.47  18.5
 OPTR   11.80   14.48   11.80   13.91  3686500   13.91  17.9 
 TCCO    4.55    5.36    4.55    5.29    22200    5.29  16.3
==================================================

quit(q),reverse(r),sort(s),detail(d),number(N): 9
==================================================
 SYMB    OPEN    HIGH     LOW   CLOSE   VOLUME  ADJCLS %CHANGE
 BOSC    3.23    4.74    3.12    4.73   882300    4.73  46.4
CRMBW    0.07    0.09    0.07    0.09    19500    0.09  28.6
 CNIT    1.24    1.69    1.20    1.47   314000    1.47  18.5
 OPTR   11.80   14.48   11.80   13.91  3686500   13.91  17.9
 TCCO    4.55    5.36    4.55    5.29    22200    5.29  16.3
 CHCI    2.09    2.54    2.05    2.38  1129500    2.38  13.9
 MCOX    3.41    3.98    3.34    3.88   170600    3.88  13.8
 PAMT   18.60   21.19   18.60   21.07   456800   21.07  13.3
 CLIR    6.93    8.19    6.93    7.75   629000    7.75  11.8
==================================================

quit(q),reverse(r),sort(s),detail(d),number(N): d
ticker symbol: zebra

Sorry...I can't find data for that symbol (ZEBRA).
Enter another ticker symbol or just hit Enter to quit search.

ticker symbol: cnit
==================================================
 SYMB    OPEN    HIGH     LOW   CLOSE   VOLUME  ADJCLS %CHANGE
 BOSC    3.23    4.74    3.12    4.73   882300    4.73  46.4
CRMBW    0.07    0.09    0.07    0.09    19500    0.09  28.6
 CNIT    1.24    1.69    1.20    1.47   314000    1.47  18.5
 OPTR   11.80   14.48   11.80   13.91  3686500   13.91  17.9
 TCCO    4.55    5.36    4.55    5.29    22200    5.29  16.3
 CHCI    2.09    2.54    2.05    2.38  1129500    2.38  13.9
 MCOX    3.41    3.98    3.34    3.88   170600    3.88  13.8
 PAMT   18.60   21.19   18.60   21.07   456800   21.07  13.3
 CLIR    6.93    8.19    6.93    7.75   629000    7.75  11.8
==================================================

quit(q),reverse(r),sort(s),detail(d),number(N): zebra

      Not sure what you want. Here are your options:

             q: quit
             r: reverse the listed display
             s: sort by different option
             d: details of specific stock
             N: show N stocks in display
      
quit(q),reverse(r),sort(s),detail(d),number(N): q

$