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

need sorted outdated #2513

Closed
smmoosavi opened this issue Jan 20, 2017 · 4 comments
Closed

need sorted outdated #2513

smmoosavi opened this issue Jan 20, 2017 · 4 comments

Comments

@smmoosavi
Copy link

Do you want to request a feature or report a bug?
bug

What is the current behavior?
unsorted yarn outdated output

 
@kadira/storybook                         2.28.1  2.28.1 2.35.3 devDependencies https://github.com/kadirahq/react-storybook#readme                                           
debug                                     2.2.0   2.2.0  2.6.0  devDependencies https://github.com/visionmedia/debug#readme                                                  
fetch-mock                                5.5.0   5.5.0  5.8.1  devDependencies https://github.com/wheresrhys/fetch-mock                                                     
invariant                                 2.2.1   2.2.1  2.2.2  devDependencies https://github.com/zertosh/invariant#readme                                                  
lodash                                    4.16.4  4.16.4 4.17.4 devDependencies https://lodash.com/                                                                          
date-fns                                  1.22.0  1.22.0 1.27.0 devDependencies https://github.com/date-fns/date-fns#readme                                                  
mocha                                     3.1.2   3.1.2  3.2.0  devDependencies https://mochajs.org                                                                          
node-sass                                 3.10.1  3.10.1 4.3.0  devDependencies https://github.com/sass/node-sass                                                            
react                                     15.4.1  15.4.1 15.4.2 devDependencies https://facebook.github.io/react/                                                            
react-bootstrap                           0.30.6  0.30.6 0.30.7 devDependencies https://react-bootstrap.github.io/                                                           
react-dom                                 15.4.1  15.4.1 15.4.2 devDependencies https://facebook.github.io/react/                                                            
css-loader                                0.25.0  0.25.0 0.26.1 devDependencies https://github.com/webpack/css-loader#readme                                                 
react-notification-system                 0.2.10  0.2.10 0.2.11 devDependencies https://github.com/igorprado/react-notification-system                                       
babel-register                            6.18.0  6.18.0 6.22.0 devDependencies https://github.com/babel/babel/tree/master/packages/babel-register                           
react-redux                               4.4.5   4.4.5  5.0.2  devDependencies https://github.com/gaearon/react-redux                                                       
babel-preset-stage-1                      6.16.0  6.16.0 6.22.0 devDependencies https://babeljs.io/                                                                          
react-router                              3.0.0   3.0.0  3.0.2  devDependencies https://github.com/ReactTraining/react-router#readme                                         
babel-preset-react                        6.16.0  6.16.0 6.22.0 devDependencies https://babeljs.io/                                                                          
recharts                                  0.20.1  0.20.1 0.20.5 devDependencies https://github.com/recharts/recharts                                                         
babel-preset-es2015                       6.18.0  6.18.0 6.22.0 devDependencies https://babeljs.io/                                                                          
redux-saga                                0.12.1  0.12.1 0.14.3 devDependencies https://github.com/redux-saga/redux-saga#readme                                              
babel-polyfill                            6.16.0  6.16.0 6.22.0 devDependencies https://babeljs.io/                                                                          
sass-loader                               4.0.2   4.0.2  4.1.1  devDependencies https://github.com/jtangelder/sass-loader#readme                                             
babel-plugin-transform-async-to-generator 6.16.0  6.16.0 6.22.0 devDependencies https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-async-to-generator
sinon                                     1.17.6  1.17.6 1.17.7 devDependencies http://sinonjs.org/                                                                          
babel-loader                              6.2.7   6.2.7  6.2.10 devDependencies https://github.com/babel/babel-loader                                                        
webpack                                   1.13.3  1.13.3 1.14.0 devDependencies https://github.com/webpack/webpack                                                           
babel-core                                6.18.0  6.18.0 6.22.1 devDependencies https://babeljs.io/                                                                          
whatwg-fetch                              1.0.0   1.0.0  2.0.2  devDependencies https://github.com/github/fetch#readme                                                       
material-colors                           1.2.0   1.2.0  1.2.5  devDependencies https://github.com/shuhei/material-colors       

If the current behavior is a bug, please provide the steps to reproduce.
just run yarn outdated

What is the expected behavior?
output sorted by package name just like npm

Package                                          Current         Wanted  Latest  Location
@kadira/storybook                                 2.28.1         2.28.1  2.35.3  my-package
babel-core                                        6.18.0         6.18.0  6.22.1  my-package
babel-loader                                       6.2.7          6.2.7  6.2.10  my-package
babel-plugin-transform-async-to-generator         6.16.0         6.16.0  6.22.0  my-package
babel-polyfill                                    6.16.0         6.16.0  6.22.0  my-package
babel-preset-es2015                               6.18.0         6.18.0  6.22.0  my-package
babel-preset-react                                6.16.0         6.16.0  6.22.0  my-package
babel-preset-stage-1                              6.16.0         6.16.0  6.22.0  my-package
babel-register                                    6.18.0         6.18.0  6.22.0  my-package
bootstrap                                  4.0.0-alpha.5  4.0.0-alpha.5   3.3.7  my-package
css-loader                                        0.25.0         0.25.0  0.26.1  my-package
date-fns                                          1.22.0         1.22.0  1.27.0  my-package
debug                                              2.2.0          2.2.0   2.6.0  my-package
fetch-mock                                         5.5.0          5.5.0   5.8.1  my-package
invariant                                          2.2.1          2.2.1   2.2.2  my-package
lodash                                            4.16.4         4.16.4  4.17.4  my-package
material-colors                                    1.2.0          1.2.0   1.2.5  my-package
mocha                                              3.1.2          3.1.2   3.2.0  my-package
node-sass                                         3.10.1         3.10.1   4.3.0  my-package
react                                             15.4.1         15.4.1  15.4.2  my-package
react-bootstrap                                   0.30.6         0.30.6  0.30.7  my-package
react-dom                                         15.4.1         15.4.1  15.4.2  my-package
react-notification-system                         0.2.10         0.2.10  0.2.11  my-package
react-redux                                        4.4.5          4.4.5   5.0.2  my-package
react-router                                       3.0.0          3.0.0   3.0.2  my-package
recharts                                          0.20.1         0.20.1  0.20.5  my-package
redux-saga                                        0.12.1         0.12.1  0.14.3  my-package
sass-loader                                        4.0.2          4.0.2   4.1.1  my-package
sinon                                             1.17.6         1.17.6  1.17.7  my-package
webpack                                           1.13.3         1.13.3  1.14.0  my-package
whatwg-fetch                                       1.0.0          1.0.0   2.0.2  my-package

Please mention your node.js, yarn and operating system version.

  • yarn v0.19.1
  • node v6.9.3, npm 3.10.10 (with nvm 0.33.0)
  • Ubuntu 16.04.1 LTS
@warpy
Copy link
Contributor

warpy commented Jan 25, 2017

Using the same logic as NPM (localeCompare the package names) returns the expected result.

In src/package-request.js:354

image

Before:
image

After:
image

@smmoosavi
Copy link
Author

Is this in next version?

@hpurmann
Copy link
Contributor

@warpy Will you create a PR with this change? I can do it as well but don't want to steal this contribution.

@warpy
Copy link
Contributor

warpy commented Feb 22, 2017

@hpurmann Please go ahead if you have the time. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants