Re-order the objects in an array so that values of a specified property match the order of a provided array of values.
Array manipulation, ordering, searching, summarizing, etc.
Prettier plugin to sort JSON files alphanumerically by key
A prettier plugins to sort imports in provided RegEx order
Binary serialization which sorts bytewise for arbirarily complex data structures
Micro library for sorting arrays using the firstBy().thenBy().thenBy() syntax
JavaScript utilities for Vega.
A tiny and fast selection algorithm in JavaScript.
Takes a json-file and return a copy of the same file, but sorted
Fork of eslint rule that sorts keys in objects (https://eslint.org/docs/rules/sort-keys) with autofix enabled
Fast and powerful array sorting. Sort an array of objects by one or more properties. Any number of nested properties or custom comparison functions may be used.
A library for textually searching arrays and hashes of objects by property (or multiple properties). Designed specifically for autocomplete.
Sort an array on an object property
Sort an Object or package.json based on the well-known package.json keys
JSS plugin that ensures style properties extend each other instead of override
Sort ES6 exports
Sort objecy keys by length
Easy autofixable import sorting
Sort interface and string enum keys
Sort the keys in an object.
Binary serialization of arbitrarily complex structures that sort element-wise
PostCSS plugin for sorting and combining CSS media queries with mobile first / **desktop first methodologies
Lightweight and performant natural sorting of arrays and collections by differentiating between unicode characters, numbers, dates, etc.
Push items to an array at their correct sort-position
Paginates in alphabetic groups
== Welcome to syc-spector home :: https://github.com/sugaryourcoffee/syc-spector == Description The sycspector scans a file for patterns provided on the command line. Lines that match the pattern are saved to a file with valid values and those lines that don't match the pattern are added to a file with invalid values. The valid and invalid files as well as the used pattern are stored in a history file. The saved values are used for a subsequent call to sycspector with --show and -f for fix to show the results or to prompt the invalid values to fix them. Fixed values can be appended to the valid values file. == Installation sycspector can be installed as a gem from http://RubyGems.org with $ gem install syc-spector == Invokation Examples Rearches for email addresses in the provided file 'email_addresses' $ sycspector email_addresses -p email Lines that are not recognized can be prompted, fixed and appended to the valid file with $ sycspector -fa To show the result of the invokation use $ sycspector --show To fix the values from the input file at the first scan $ sycspector -f email-addresses -p email To sort the values $ sycspector -s email-addresses -p email To fix, sort and remove duplicates (individualize) $ sycspector -fsi email-addresses -p email Matching patterns like 'name, firstname' $ syscpector name -p "\w+, \w+" Scanning only whole lines use $ sycspector name -p "\A\w+, \w+\A" If the file contains lines like "Doe, John and Doe, Jane" these won't be saved at the first scan but can be scanned with the --fix switch and appended to the valid values from the last run $ sycspector -fa Fixing a specific file by specifying the invalid file as inputfile $ sycspector -fa 2013016-083346_invalid_name -o 2013016-083346_valid_name Specifying the file where the results (valid and invalid) should go to $ sycspector -fa -o outputfile To process all at once $ sycspector -fis inputfile -o outputfile -p "\A\w+, w+\Z" --show == License syc-spector is released under the {MIT License}[http://www.opensource.org/licenses/MIT].
ActiveRecord plugin
Sort a array of hashes with one or multiple values
A RBTree is a sorted associative collection that is implemented with a Red-Black Tree. It maps keys to values like a Hash, but maintains its elements in ascending key order. The interface is the almost identical to that of Hash.
Sortable provides a DSL for defining sort order on any Ruby object To use it, you just call the sortable method and pass it a list of methods and/or blocks; when you call sort on a collection of these objects, each method/block is evaluated in turn, and the first that provides a non-zero sort value is used.
Allows you to deep sort YAML files that are mainly composed of \ nested hashes and string values. Great to sort your rails I18n YAML files. You can easily add it to a textmate bundle, rake task, or just use the included regular comand line tool.
A RBTree is a sorted associative collection that is implemented with a Red-Black Tree. It maps keys to values like a Hash, but maintains its elements in ascending key order. The interface is the almost identical to that of Hash. This is a fork of the original gem that fixes various bugs on Ruby 2.3+.
A puppet-lint plugin that checks class parameters. Class parameters should be split in two groups, the first group with no default values, the second group with default values. Both groups should be sorted alphabetically.
TimeTrap is a sorted set which keeps track of the times values are added allowing for investigation of a set over time intervals.
If you find yourself encrypting a value that you need to sort by, then this gem might help. It stores a redacted version of the string, the first three characters, in another column.
An implementation of Array that permits chaining, where children inherit changes to parent and where parent settings can be overridden in children, and that retains sorted order, ensuring inserted values are unique.