Coder Social home page Coder Social logo

Comments (12)

abhijitnathwani avatar abhijitnathwani commented on June 21, 2024 1

Thanks @thedevsaddam . The -s flag sorts lexically now.

However, the default behavior is still ordering in reverse. We can verify that by checking the sequence in collection.json and the generated output. Should I open an issue to track that?

from docgen.

tahayk avatar tahayk commented on June 21, 2024

still having same issue, any idea how to solve this ?

from docgen.

FabienSailliet avatar FabienSailliet commented on June 21, 2024

Same under Linux with v2.3 and the same collection.

I tried to quickly look over the code, but I don't know Go, so I will not be really useful, sorry.

from docgen.

Enrico204 avatar Enrico204 commented on June 21, 2024

I found the code part that does the sorting. I'll create a pull request to add a command line switch to enable/disable collections sort :-)

from docgen.

Enrico204 avatar Enrico204 commented on June 21, 2024

@FabienSailliet can you check if this problem is fixed in the latest version? Thanks :-)

from docgen.

akiselev1 avatar akiselev1 commented on June 21, 2024

@Enrico204 I checked - the sorting problem is still there today. -s switch is visible in help and accepted. But it does not change the reverse sort order. It is reproducible with the original test json posted by @FabienSailliet
Docgen version: v2.3

from docgen.

abhijitnathwani avatar abhijitnathwani commented on June 21, 2024

@Enrico204 @thedevsaddam This problem is still persistent. Do we have any solution for this?

from docgen.

thedevsaddam avatar thedevsaddam commented on June 21, 2024

@abhijitnathwani , Hopefully, it will be solved by next release [v3.0.0]. There will be major changes in UI.

In the case of directory or requests ordering:

  • The default will be as it shows in postman
  • -s flag will sort the items (directory, requests) in lexical order

from docgen.

thedevsaddam avatar thedevsaddam commented on June 21, 2024

Please use the latest v3.0.0-rc

curl https://raw.githubusercontent.com/thedevsaddam/docgen/v3/install.sh -o install.sh && sudo chmod +x install.sh && sudo ./install.sh

I'm closing the issue. If anything goes wrong, please feel free to create an issue or reopen

from docgen.

thedevsaddam avatar thedevsaddam commented on June 21, 2024

The default order is using parent directories in order but the children are going out of order

Screenshot 2020-05-14 19 16 59

Note: Probably I'll need a PR for that :(

Update: Removed the s flag, from now on the collections will be in lexical order by default

from docgen.

mnich0ls avatar mnich0ls commented on June 21, 2024

I'm also still seeing sorting not following the same order of the requests in the collection by default:
Screen Shot 2020-05-21 at 4 55 30 PM

I used the Mac binary 3.0.0-rc2 - https://github.com/thedevsaddam/docgen-bin/blob/master/latest/mac_amd64

from docgen.

thedevsaddam avatar thedevsaddam commented on June 21, 2024

The collections are ordered alphabetically,
a-z etc

from docgen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.