Category "sorting"

sort() not affecting original array while inside foreach loop

I have array with structure: Array ( [months] => Array ( [01] => Array ( [0] => 16

Sorting artifacts using aql and cleanup old artifacts

I'm trying to sort the list of artifacts from jfrog artifactory but getting (The requested URL returned error: 400 Bad Request), in the jfrog documentation (htt

Simple custom sorting function for jQuery DataTables

Numeric sorting is not working on my dataset. So I made a custom sorting that converts whole string into number then sorts based on that, but for some reasons i

Sort a List in Dart based on how another List was sorted

I am trying to sort a list with reference to another list. Consider this example, List<String> a = ["a", "b", "c"]; List<int> b = [2, 3, 1]; Now,

Finding number of inversions in given array

I have written the following code to find the inversions in array {1,4,2,5,3} by using merge sort technique. I have been debugging it to the best of my knoledge

Filter and sort inputed list of integers for non negative numbers python

I am trying to take a list that a user inputs, filter and sort in ascending order but only for the non-negative numbers. I thought I understood how to do this

Creating alternate series in r

I have a list of -0.5, -0.6, 0.7, 1, 1.5, 3, -5 and I would like to sort it as 3, -5, 1.5, -0.6, 1, -0.5, 0.7. In other words, I would like to sparate the list

Laravel 5: Is there a non-case sensitive way to sort a collection by an attribute?

I'm struggling to sort an Eloquent collection using the sortBy() method. The issue is that the sorting is case sensitive and it first retrieves the uppercase re

How to sort version numbers in Ansible

I'm building an Ansible playbook in which I want to make a backup of a database in case I need to upgrade the software. For this I want to compare the highest v

Use SortedSetDocValuesField to sort multiple fields - Error: unexpected docvalues type SORTED_SET for field

I am just implementing a search with Lucene 5.5.0 for a JSF web application. In the application, several user can edit documents and very simple (only date and

Reorder attribute dropdown terms in Woocommerce single variable products

In the Woocommerce single variable product pages, I would like to change the order of the sizing options on the related drop-down menu. Actually It is like thi

Sort a multidimensional array by integer inside of a string value which is two levels down

I have a multidimensional array in php: Array ( [0] => Array ( [certificate_name] => track.site [domains] => track.site

Google Spreadsheet MAX + Join of other cells

I have a spreadsheet like this - I can't figure out how to dynamically search for this. I want to find the MAX Score Value + output the related name (no worries

How to get max values for each unique value in a different column in Google Sheets?

I have two columns, the first column (A) has names and the second column (B) has values. A B apple 10 orange 12 orange 14 apple 8 Is there a way to get only r

Java application for sorting and selecting

I need to develop a simple application for sorting and selecting data according to predefined rules. The application must be able to work with JSON lists of obj

javascript merge sort and recursion

I am trying to understand how JavaScript merge sort function work. And I struggle understanding how the recursive function work. This is the code: const mergeSo

How to sort a map by value in JavaScript?

How to sort this map by value? var map = new Map(); map.set('orange', 10); map.set('apple', 5); map.set('banana', 20); map.set('cherry', 13);

Best way to sort bracketed values in a string both alphabetically and by number?

I have an ArrayList that contains a list of JSONpaths in String format, similar to something like the following: "$['book'][0]['title']" "$['book'][1]['title']"

Best way to sort bracketed values in a string both alphabetically and by number?

I have an ArrayList that contains a list of JSONpaths in String format, similar to something like the following: "$['book'][0]['title']" "$['book'][1]['title']"

Spring jpa native query sorting adding prefix to order by field name

I have problem with sorting. Repository method: @Query(nativeQuery = true, value = "SELECT D.ID as dealerId , D.NAME as dealerName, K.ID as kpiId, " + "