191 questions
1
vote
3
answers
81
views
Problem trying to sort images alphabetically by file name that have been loaded into a div via file reader
I am trying to load images into an html document using the file reader API, and then sorting them alphabetically. The code I have written loads the images into the div just fine, however it doesn't ...
-1
votes
1
answer
61
views
MySQL Sorting 1 column by word length then alphabetically [duplicate]
I am working on a site that displays all possible words from letters entered. There are words in the database up to 15 in length. Approximately 170,000 words. When I enter up to 8 letters, everything ...
0
votes
2
answers
54
views
Numbers keep sorting alphabetically despite being integers
On my dataset in SQLite any query that sorts numbers (i.e. a GROUP BY clause) sorts alphabetically (1, 11, 12, 2) rather than numerically (1, 2, 11, 12). The data is coming back as for example 999,000,...
0
votes
1
answer
152
views
How do I take 2 tabs from a google sheet and combine based on the 1st column but also sum the 2nd column in Google Sheets?
1st table:
Company
Cost
A
$100
B
$200
C
$50
D
$100
2nd table:
Company
Cost
A
$50
D
$75
A
$90
D
$100
B
$200
D
$100
I want combine the data in a new tab so that all data from company A is combined and ...
0
votes
1
answer
54
views
How can I sort characters in a string field alphabetically in SQLite? ("sokoban"--->"abknoos" )
How can I sort the characters in a string value in SQLite Database?
For example:
"macedonia" --sorted--> "aacdeimno"?
I know one method: if I use another table: integers(i int)...
3
votes
2
answers
525
views
Accent sensitive sort in PostgreSQL
How to sort text in PostgreSQL in Latvian alphabetic order, so any letter without accent always comes before the letter with accent?
For example this
select * from (
select 'bā' as name
union ...
2
votes
1
answer
109
views
C# String sorting... how to compare non-Ordinal but put lowercase after uppercase for strings starting with same letter?
Suppose I have four strings abc, Abc, Bca, and bca. The requirement is that these would be sorted (when alphabetical) to Abc, abc, Bca, bca.
With this code:
names.Sort((a, b) => string.Compare(a, b)...
2
votes
2
answers
575
views
Sorting strings with Turkish alphabetical order in Dart
I want to sort the Turkish name of countries in Dart, however I couldn't find a method to customize the alphabetical order during sorting operation like collations in Java.
For example when I sort ...
1
vote
1
answer
349
views
What locale/rule gives this string sort order?
I have subscribed to a cloud drive service. All good until I needed to check that all folders in a long list had been actually uploaded. I realized that the name-based sort order in my local system is ...
0
votes
2
answers
685
views
Order alphabetically each element of a list in R
I have a dataframe and one of the variables is a list. I want each of the vectors in the list to be alphabetically ordered.
[1] D,F should become F,D
[2] B,D,C should become B,C,D
and so on with each ...
0
votes
1
answer
90
views
I want to sort .properties file in alphabetical order using php
**I want to sort .properties file in alphabetical order with comments. Only alphabetical order is working fine but when i am trying to sort with comments it's not showing comments.
this is my ....
1
vote
1
answer
849
views
A Script To Sort Objects Alphabetically Within A Layer In Adobe Illustrator CC?
I'm not literate about programming but I need a script to help me alphabetically sort objects in a layer in Adobe Illustrator. My vector is a map having 1 layer with all the objects I need to sort at ...
2
votes
1
answer
138
views
Alphabetically sorting an array within an array in Ruby?
Method input:
["eat","tea","tan","ate","nat","bat"]
I have grouped each of the anagrams into their own array within an array through this ...
0
votes
1
answer
209
views
Sorting 'Alphabetically' (Alien Dictionary Code Problem)
I've started tackling coding problems to try and improve my skills.
I'm working on the 'Alien Dictionary' coding problem which, when given a sorted list of 'Alien Words' you need to determine the '...
0
votes
4
answers
734
views
Is it possible to order an array alphabetically in Laravel?
I am new to Laravel and I was wondering if I can order the following multidimensional array with countries alphabetically? So I want all the countries inside the continents to be ordered ...
0
votes
1
answer
132
views
JS: Alphabetizing list of radio buttons by label.text() after appending new radio button from text input
Edit
Now the new radio button is sorted correctly into the dropdown menu but only the first one. The new button is simply appended to the last node in all other lists.
I have a dynamic table that ...
-1
votes
1
answer
334
views
How to make an alphabetic list sorter in VB
I would like to create an alphabetic sorter on Vb. I want the user to be able to type things into a textbox and then sort them alphabetically in another label. I am not fully sure how to do this.
1
vote
2
answers
838
views
How to alphabetically rearrange a String in Delphi?
I have seen many things on how to sort Strings in an Array alphabetically. I was wondering if it possible to take an individual String (for example just a single word you entered through a TEdit) and ...
0
votes
1
answer
887
views
QtableView column sorting with floats formatted as strings
I need to use a custom QtableView in Python to display and format data.
The example app below shows a table with the first column of floats formatted as strings to get the proper number of decimals, ...
0
votes
1
answer
1k
views
Trying to sort two combined strings alphabetically without duplicates
Challenge: Take 2 strings s1 and s2 including only letters from a to z. Return a new sorted string, the longest possible, containing distinct letters - each taken only once - coming from s1 or s2.
# ...
-2
votes
1
answer
403
views
How to print second word alphabetically ? | JAVA [closed]
I must ask for inputs from the user (there is not any limit for the input word count) and then the program must print the second word that comes in alphabetical order.
Instructions
Write a program, ...
0
votes
0
answers
57
views
Map of maps - how sort inner map with lambda?
I have a map like this:
Map<String,Map<String,String>>
And I need to sort the second map, so I try something like this:
ArrayList<ArrayList<String>> response = new ArrayList&...
3
votes
4
answers
636
views
Does Java have an alphabetical order like this?
Like in this example, https://www.duden.de/rechtschreibung/Regen_Niederschlag , the words are sorted in the following way:
"regelwidrig, Regelwidrigkeit, Regelzeit, regen, Regen, Regenabflussrohr,...
0
votes
2
answers
2k
views
how do I make this code print the unique words in the file in alphabetical order?
# Ask for inputs
fileName = input("Please enter the filename: ")
f = open(fileName, 'r')
lines = f.read()
f.close()
#Input the text, find unique words and add to a list
words = []
...
0
votes
0
answers
300
views
How to sort a csv file alphabetically in shell scrit?
I'm trying to make a shell script that its only function is showing as output the content of a csv file in alphabetical order, the thing is I know I should do it with the sort command and I've tried ...
1
vote
2
answers
1k
views
Alphabetize Grid with... JS? CSS?
I have a grid I'd like to keep in alphabetical order without manually intervening. I.e. that I can continue adding to without re-alphabetizing every time. The grid itself is very simple, just 3 ...
0
votes
1
answer
1k
views
Change alphabetical order in ggplot R [duplicate]
I'm trying to create a line plot with the order that I gave to it in the dataframes I'm using, however I've tried everyting and whener I add something like reorder or stat = "identity" it ...
0
votes
1
answer
68
views
Sorting a 2D string array in c
I am trying to sort this file that has this information below
Easy,Category 3 hurricane,5-Sep,1950
King,Category 4 hurricane,18-Oct,1950
Florence,Category 1 hurricane,26-Sep,1953
Hazel,...
-4
votes
2
answers
182
views
sorting linked list in alphabetical order
I want to order nodes' chosen string variables. this is an homework due to tomorrow.
public void sortSongName() {
DefaultSongs sortedList = new DefaultSongs();
...
0
votes
3
answers
1k
views
How to solve an error with improper alphabetical comparison
I have to write a program that first reads in the name of an input file and then reads the input file using the file.readlines() method. The input file contains an unsorted list of number of seasons ...
0
votes
0
answers
23
views
Alphabetize rows without losing data
My sheet contains volunteer data imported via query from another worksheet. I'm assigning various roles to each volunteer on this sheet.
I'd like to alphabetize by last name to make it easier to ...
1
vote
2
answers
78
views
Python Alphabetical Sorting 2D list not working
I have a list with 4 columns:
L = [[0, '0000000', 'Hashfunction.jpg', 258883, '.jpg'],
[1, '0000001', 'a_test_grey.jpg', 24186, '.jpg'],
[2, '0000002', 'b_test_grey.jpg', 4256, '.jpg'],
...
0
votes
0
answers
150
views
Make file order the same in "git diff" and Azure Devops
When I'm looking at files modified using git diff, I see the following (filenames modified, I use more meaningful names in real life!):
/DN/B/F/B.F.S.T/FRT.cs
/DN/B/F/B.F/L/OSL.cs
However, in Azure ...
0
votes
1
answer
507
views
Table sorted alphabetically
Trying to filter table alphabetically, so that a list of letters is displayed above the table, and when user clicks on letter, all the terms starting with that letter are displayed. The script is ...
0
votes
1
answer
67
views
For the entire students of the class, get their name, reg.no , stream and arrange their names alphabetically using unions
So I've tried this question using union but there is some error that I am unable to figure out.
In this code, I'm getting an error which says "Warning] passing argument 1 of 'strcpy' makes ...
1
vote
1
answer
53
views
Reading file into Struct, but cannot read past first line in file
I am working on an assignment where I need to sort a struct alphabetically based upon an employees surname. I have written the program and can run it, but unfortunately it seems to be removing all of ...
1
vote
1
answer
41
views
Merging Columns and Alphabetizing Their Contents [duplicate]
I have a data frame called called issuesdata that I created from a larger frame, clean.data
issue1 <- as.vector(clean.data$issue1)
issue2 <- as.vector(clean.data$issue2)
issue3 <- as.vector(...
1
vote
1
answer
1k
views
How to sort an array alphabetically in different languages (Spanish, French, Russian, etc.) in php?
The traditional alphabetic sorting algorithms suggested in StackOverflow for PHP serve well to sort in the English alphabetic order, but with other languages, that have a different alphabet order, or ...
0
votes
0
answers
64
views
Java string sorting result conflict with sfcc out of the box sorting feature
I am trying to find out whether the product sorting (A-Z and Z-A) is working fine in my sites. I have done this before and it worked perfectly. But now it is throwing an error saying the sorted result ...
1
vote
1
answer
2k
views
How to sort char array by 1) length and 2) alphabetic order?
I am learning C-programming and working on a school assignment. With limited possibilities to ask teachers or peers (due to the Corona-outbreak and distancing at home) I am reaching out to you. Help ...
-1
votes
1
answer
767
views
Failing to sort pandas dataframe by values in descending order and then alphabetically in ascending order
A slice of my dataframe, df, is like this, so you can reproduce it.
data ={'feature_name': ['nite', 'thank', 'ok', 'havent', 'done', 'beverage', 'yup', 'lei','thanx', 'okie', '146tf150p', 'home', 'too'...
-2
votes
1
answer
2k
views
Alphabetically sort in Angular
I am new in Angular and sorry if this question is repeated but I can't find the answer I was looking for. I have a file with a next JSON in it:
{"name": "John", "size" ...
-1
votes
3
answers
1k
views
C++ Doubly linked list adding node in alphabetical order and value
My task is a create doubly linked list and sort them according to their data, if new written node's data is equal to the one of the nodes' data in my doubly linked list, i should sort them in a ...
3
votes
1
answer
1k
views
MacOS Finder sorts alphabetically differently than Python .sort() [duplicate]
I have three files:
x10.txt
x30.txt
x200.txt
If I go to my MacOS finder and sort by name I get the following order:
x10.txt
x30.txt
x200.txt
I am trying to get them in the same order in Python. I am ...
3
votes
1
answer
226
views
sort numbers numerically and strings alphabetically in an array of hashes perl
It's a very easy problem but can't get my way around it. I have an array of hashes. The data structure as follows:
my @unsorted = (
{
'key_5' => '14.271 text',
# ...
},
...
2
votes
2
answers
1k
views
sort numbers numerically and strings alphabetically in an array perl
It's a very easy problem but can't get my way around it. I have an array
@arr = qw(txt text anothertext 38.09 100.87 0.876)
How can I sort the numbers in the array numerically and the strings ...
0
votes
1
answer
756
views
Google Scripts - Sorting but without being case sensitive
I am writing an Google Scripts attached to Google Form and Google Sheet. I have a list of names where some have entered the data with lower case and upper case. I am trying to sort - however, the ...
0
votes
6
answers
2k
views
Sort a list alphabetically and retrieve initial index in python
I've been trying to sort a list of names alphabetically, let's say:
list=['Bob','Alice','Charlie']
print(list.index('Alice'))
1
However I'd also like to keep track of the original indexes, so this ...
0
votes
2
answers
69
views
LinQ OrderBy specific element in sublist
I have a Category class
public class Category
{
public long Id { get; set; }
public Translation[] Translations { get; set; }
}
and a Translation class
public class Translation
{
public ...
0
votes
1
answer
42
views
Segmentation fault -- Alphabetically sorting a list
I was given a file with several recipes denoted at the beginning by 0. Each recipe is followed by it's ingredients denoted at the beginning by 1 as shown below :
char *rawRecipes[]={
"0Broccoli ...