Skip to content

Sorting disfunctional with format csv and by-file option #311

@doomguy

Description

@doomguy

Describe the bug
Sorting (-s, --sort) doesn't work together with "-f csv" and "--by-file"

To Reproduce

$ scc --by-file -f csv --sort lines gitlab-pages | column -s, -t | head -n 4
Language    Location                                                                                                           Filename                        Lines  Code  Comments  Blanks  Complexity  Bytes
Makefile    gitlab-pages/Makefile.util.mk                                                                                      Makefile.util.mk                68     52    1         15      3           2447
Markdown    gitlab-pages/PROCESS.md                                                                                            PROCESS.md                      80     61    0         19      0           4575
License     gitlab-pages/LICENSE                                                                                               LICENSE                         19     16    0         3       0           1046

Expected behavior
The rows are sorted by lines.

Desktop (please complete the following information):

  • OS: macOS
  • Version 3.0.0
  • Install Source: homebrew

Thanks for looking into it!
/Doomguy

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions