Module Command :: Class sortclass
[hide private]

Class sortclass

source code

        object --+    
                 |    
              pype --+
                     |
        object --+   |
                 |   |
           stacker --+
                     |
    object --+       |
             |       |
    linebuffer --+   |
                 |   |
outputfilterbuffer --+
                     |
                    sortclass

Sort input lines and produce the sorted lines as output.

Example:

   cat('*.dat') | sort(reverse=True) > stdout
Nested Classes [hide private]
  dosort
Auxiliary class.

Inherited from outputfilterbuffer (private): _nullblock

Instance Methods [hide private]
 
__init__(self, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from pype: __gt__, __or__, __repr__, __str__

Inherited from stacker: __call__, __sub__

Inherited from outputfilterbuffer: __iter__

Inherited from linebuffer: write

Inherited from linebuffer (private): _buffer

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • n - if True, compare lines as floating point numbers.
  • i - if True, ignore differences in lower and uppercase symbols.
  • r - if True, do a reverse sort.
Overrides: object.__init__
(inherited documentation)