Giter Site home page Giter Site logo

Comments (7)

fullwall avatar fullwall commented on July 20, 2024

Why do you want them sorted? FYI, traits are stored in a HashMap which are guaranteed to have inconsistent iteration order for this reason.

from citizens2.

SlimeDog avatar SlimeDog commented on July 20, 2024

Why do you want them sorted?

I want to compare file content on two nominally identical servers to ensure that they are in fact identical. To do that a present is a multi-step visual process. Out of 160 plugins I test, the only content that isn't identical on server shutdown/restart is Citizens/saves.yml.

I understand that a HashMap can be sorted for output by converting to a TreeMap. If you are willing to accept a PR, I can pay my programmer to make it so, or I can contribute equivalent support to Citizens if you want to do it yourself. I appreciate that this is a relatively small thing that you might be unwilling to accept.

from citizens2.

fullwall avatar fullwall commented on July 20, 2024

Why not just make a script to compare yaml files? Should be trivial.

from citizens2.

SlimeDog avatar SlimeDog commented on July 20, 2024

Why not just make a script to compare yaml files? Should be trivial.

I have done, for 10 years now. The script would be even more trivial if the lists were sorted. Thus the request.

from citizens2.

fullwall avatar fullwall commented on July 20, 2024

I don't think I can sort every single key in the saves.yml file, so better to update your script sorry

from citizens2.

SlimeDog avatar SlimeDog commented on July 20, 2024

If we post a PR to sort the three keys that we referenced above, will you accept it?

from citizens2.

fullwall avatar fullwall commented on July 20, 2024

No

from citizens2.

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.