bitcrowd / herodot

Track your work with your git activity.
MIT License
12 stars 0 forks source link

Sort entries for projects alphabetically by branch name #8

Closed pmeinhardt closed 6 years ago

pmeinhardt commented 7 years ago

Currently, the output seems not to be in any particular sort order.

Example:

code ❯ herodot show
+------------------------+----------------------------------------------+---------+
| Project                | Branch                                       | Time    |
+------------------------+----------------------------------------------+---------+
+------------------------+----------------------------------------------+---------+
| 2017-08-10             |
+------------------------+----------------------------------------------+---------+
| /Code/bitcrowd/herodot | master                                       | 7:54:32 |
| /Code/bitcrowd/herodot | update-tracking-mechanism-for-easier-updates | 0:08:19 |
| /Code/bitcrowd/herodot | make-worklog-file-hidden                     | 0:01:32 |
| /Code/weka/code        | feature/62-2-0-name-the-kataster             | 4:54:34 |
| /Code/weka/code        | master                                       | 0:00:31 |
| /Code/weka/code        | feature/141-notes-for-changed-regulations    | 0:06:57 |
| /Code/weka/code        | feature/161-finish-topbar-without-dropdown   | 0:05:09 |
+------------------------+----------------------------------------------+---------+
+------------------------+----------------------------------------------+---------+

It would be nice, if the table was sorted by project path first (which may already be happening) and then by branch name.

Example:

+------------------------+----------------------------------------------+---------+
| Project                | Branch                                       | Time    |
+------------------------+----------------------------------------------+---------+
+------------------------+----------------------------------------------+---------+
| 2017-08-10             |
+------------------------+----------------------------------------------+---------+
| /Code/bitcrowd/herodot | make-worklog-file-hidden                     | 0:01:32 |
| /Code/bitcrowd/herodot | master                                       | 7:54:32 |
| /Code/bitcrowd/herodot | update-tracking-mechanism-for-easier-updates | 0:08:19 |
| /Code/weka/code        | feature/141-notes-for-changed-regulations    | 0:06:57 |
| /Code/weka/code        | feature/161-finish-topbar-without-dropdown   | 0:05:09 |
| /Code/weka/code        | feature/62-2-0-name-the-kataster             | 4:54:34 |
| /Code/weka/code        | master                                       | 0:00:31 |
+------------------------+----------------------------------------------+---------+
+------------------------+----------------------------------------------+---------+