# Customize the sort of "git diff --stat" output

1 messages from 2018-08-28 to 2018-08-28. Participants: ROZAR Fabien.
Thread: https://gitlist.dev/t/49233

## ROZAR Fabien, 2018-08-28 11:49

Subject: Customize the sort of "git diff --stat" output
Message-ID: <AM6PR06MB423154FFB65DD801EF0CE8519A0A0@AM6PR06MB4231.eurprd06.prod.outlook.com>
URL: https://gitlist.dev/e/AM6PR06MB423154FFB65DD801EF0CE8519A0A0%40AM6PR06MB4231.eurprd06.prod.outlook.com

```
Hello there,

I was looking for the possibility of sorting the output of the command "git diff --stat" by the number of modifications. Currently, the output of this command show the modified files by alphabetic order.
I didn't find a "builtin" option which allows to sort the files by number of modifications.

It is possible to do it with a "| sort <good_option>" but you may lose the coloration and it's not desirable.
If this option already exist, please send me a link to it and I apologize by advance.

Fabien ROZAR

```
