Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG,DOC: sorting appears to be broken #10

Open
westurner opened this issue Oct 23, 2014 · 1 comment
Open

BUG,DOC: sorting appears to be broken #10

westurner opened this issue Oct 23, 2014 · 1 comment

Comments

@westurner
Copy link
Owner

Test Cases:

  • Sorting by column (ascending)
  • Sorting by column (descending)
  • Sorting by column (regex groups - ascending)
  • Sorting by column (regex groups - descending)

Solutions:

A. Fix sorting
B. Remove sorting functionality

Meanwhile:

westurner added a commit that referenced this issue Oct 27, 2014
westurner added a commit that referenced this issue Oct 27, 2014
* release/0.3.0:
  RLS: pyline v0.3.0
  CLN: remove _import_path_module
  ENH,BUG,CLN: #10, #12, #13
  DOC: program-output:: -> command-output::
  Revert "BLD,DOC: Update requirements.txt: add ../ (from ./docs) as editable"
  BLD,DOC: Update requirements.txt: add ../ (from ./docs) as editable
@westurner
Copy link
Owner Author

So, to clarify with test cases:

# this sorts by the third (0, 1, 2) character of
# the default expression ``line`` (with ``unicode``)
./pyline.py -v -s 2

# these all sort by the third word (0, 1, 2) of
# the expression ``words`` (as ``unicode``)
./pyline.py -v -s 2 w
./pyline.py -v -s 2 'w'
./pyline.py -v -s 2 words
./pyline.py -v -s 2 'words'

# this sorts by the third word (0, 1, 2) as an integer
# and raises ValueError if the cast to integer raises an exception
./pyline.py -v -s 2 'words' --cols='2::int'
./pyline.py -v -s 2 'words' --cols='2::xsd:integer'

@westurner westurner changed the title BUG: sorting appears to be broken BUG,DOC: sorting appears to be broken Jan 27, 2016
@westurner westurner added the DOC label Jan 27, 2016
@westurner westurner removed the ready label Feb 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant