Sorting list of Dates in Elixir

I put together a little script to help me with an injury recovery process. It outputs what I expect, however dates do not appear to be sorting as I would expect - it looks like sorting by month/day is working, but not by year. Same result if I am on...
more »

2017-01-14 23:01 (1) Answers

Asigning matrix element by list of tuple keys

I've got a 2dim database as a numpy.array (time,field values). Secondly I have a np.array of tuples, containing the coordinates of the field in the same order. What I want to do now is to reshape the database so that I can later view the map with mat...
more »

2017-01-14 13:01 (1) Answers

Sorting Array in Swift3

In my code, I have a struct like the following: struct Object { var name: String var count: Int I am now creating an array of 10 Objects with random names and random counts. Is there an easy way to a) sort them alphabetically b) sort them...
more »

2017-01-14 09:01 (2) Answers

Android Firebase multiple sort

I have a question about firebase sorting. I have the next database: { "-Ka8xxTgyFB8yYKH50j_addclose" : { "number" : 0, "point" : 949739, "timestamp" : 14824078463440, "username" : "Test 16062" }, "-Ka8xzK...
more »

2017-01-13 18:01 (1) Answers

Sorting unsigned ints in Go

I want to sort a slice of []uint. Does this make sense? Is there something I'm missing about uints that make them unsortable? I notice that the sort package has an IntSlice and Float64Slice, but nothing for uint. If uints are sortable, then can I ju...
more »

2017-01-12 23:01 (1) Answers

C++ sort vectors time complexity

Suppose I have a vector<vector<int>> L with N vectors, and total number of ints summed across all vectors is at most M. What is the tightest time complexity of the standard C++ sort sort(L.begin(), L.end())? The vector<int> compari...
more »

2017-01-12 23:01 (2) Answers

Match Two Inconsistent Lists in Excel

I have a sort of complicated listing issue in excel and hopefully someone is up for the challenge. I appreciate any and all responses. I have two lists of about 50,000 names. My actual workbook has longer strings of data but to keep it simple, I'll ...
more »

2017-01-12 22:01 (0) Answers

Complex MySQL sort

I've done an almost full re-write on this question as I'm still stuck... Looking for a way to view the data in a results table without having to use php or some other data interpreter/programming to see the results how I want to see them. Basic resu...
more »

2017-01-12 19:01 (0) Answers

PouchDB: filtering, ordering and paging

Very similar to these two CouchDB questions: 3311225 and 8924793, except that these approaches don't allow partial matching. Having e.g. these entries: [{_id: 1, status: 'NEW', name: 'a'}, {_id: 2, status: 'NEW', name: 'aab'}, {_id: 3, status: 'NEW'...
more »

2017-01-12 09:01 (0) Answers

Java sort array by the third element

i want to sort a String array descendant by it's third column in descend, the problem is that i want to sort by it's numeric value. Example: If i have this array initially: String [][] array = new String[][] { {"Barcelona", "156", "1604"}, {"...
more »

2017-01-11 22:01 (2) Answers

Sort files by two string in file name: Batch File

I would like to sort a set of files in a specific order using a batch file. The files should be grouped by Floor number and sorted by a string which is contained in the filename. An example of some file names are as follows: Floor_1_SomeName_PCI_S...
more »

2017-01-11 19:01 (3) Answers