Sorting is the process of applying some order to a collection of items.

learn more…| top users | synonyms (5)

0
votes
3answers
57 views

Sort numbered list

I can't seem to find any information on how to correctly sort a list like this. My list looks something like this["1. Banana", "2. Pear", "11. Apple", "5. Grapes", "4. Orange"]Using sorted() ...
0
votes
1answer
31 views

Sort list of lists creating another mapping list with index values

So i have an original list of lists oList, child lists are sequences of numbers. I create another list srt to manipulate the data like that:#...srt=[]for i in range(len(oList)):srt.append([ ...
-3
votes
1answer
46 views

algorithms for fast set operations

i have sets in the form of (a,b) as(2,4) (1,3) (4,5) (1,2)Given a list like <2,1> i want to find all sets in the list which have 2 or 1 as the first element, in this case (2,4) (1,3) (1,2) and ...
0
votes
1answer
11 views

How do I combine two sets of multiple columns based with a reference column in Excel?

Column F to K maps a numeric ID to a player and biographical info. And, column A to C contains ranking info of each player. How can I rearrange column F to K to match the row values in column C?...
0
votes
5answers
41 views

Two SUMs from same SQL query

I have this query:SELECT hour, SUM(field1+field2+field3) as product_total FROM db.dbf WHERE (product_ID BETWEEN 999 AND 9999) AND day IN ($date1,$date2) GROUP BY hourThe query works and ...
-1
votes
0answers
13 views

Efficiency of using merge-sort algorithm with classes

This is a general question about the capabilities of merge-sort algorithm using classes:(the codes here are general pseudo codes)Consider for example that I have a class defined as follows:class ...
-1
votes
0answers
35 views

Сonstant error when compiling my c++ programs with sorts. <dbgheap.c>

I'm trying to write code for common sorting algorithms and this is not the first time I'm getting this error:Google says that access to a non-existent dynamic object, but debugging did not yield ...
-1
votes
1answer
53 views

Algorithm for sorting numbers into bins with variable range

I need to sort a set of n Numbers into "bins" that have a certain range. Here is an example of what I want to do:Array=[1, 5, 6, 4, 2, 10]binA has a range from 1 to 3 -> 1,2 gets sorted in...
0
votes
2answers
33 views

javascript sort, Compare 3 different types and sort in order

I have an array of objects. each object has a "day type"; morning, afternoon, evening. They come in random order each time I get the list due to async differences... But I need to display them in ...
0
votes
4answers
45 views

ordering responses based on individual dates

I have time series data in my data frame that is organized by subject ID and response date, where each subject responded for 7 days but starting and ending on different days. I need to come up with a ...
4
votes
2answers
50 views

Python - Sorting a list item by alphabet in a list of lists, and have other lists follow the swapping order

I am trying to sort a list of lists in Python by the first row (specifically not using Numpy, I know there are many solutions using Numpy but this is a question that specifically asks for a way ...
1
vote
1answer
60 views

Sorting argv Inserts Random Numbers

I am trying to sort *argv[] and I am getting random numbers printing out when i try and display the results of sorting. #include<stdio.h>#include <string.h>#include <stdlib.h>...
3
votes
4answers
66 views

Sorting a list of numeric strings with numerous decimal points

I've got a situation where I need to sort a list of strings that contain three decimal parts in descending order from left-to-right. The real code is a dictionary of <string, object>, but I've ...
0
votes
0answers
3 views

How to put two bs-sortable template in single HTML component in angular4

<ng-template #itemTemplate let-item="item" let-index="index"><div class="img-hover"><img class="img-fluid" [src]="item.value.image">...
0
votes
0answers
27 views

foreach sort results from database

I have 9 blocks, and I want sort it by last news added.I have code:$projects=Projects::find(['conditions'=> 'active=1', 'order'=> 'id DESC']);$itemsps=[];foreach($projects ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,