Questions tagged [alphabetical]

Use this tag to describe the way of ordering a sequence in the same order as the alphabet

Alphabetical describes the way of ordering a sequence of strings (letters, words...) in the same order as the alphabet. For instance, a dictionary is ordered in the alphabetical order.

cf.

731 questions
-4
votes
1 answer

Filtering ranges of letters in Javascript

I have to create a program that takes the first letter of a prompt, and if that letter is between a and k, then it has to produce a certain output, if it's between l and p another and so on. Is there a way to do this without writing every letter of…
-4
votes
1 answer

How do create an Alphabetizer Program?

This is what i have so far- could i have some help with getting the "alphabetized" version to show up? I've been trying to add different things, but i'm not sure what should stay and what should go. Could I get some tips on how to fix this up? …
-4
votes
1 answer

how do I sort an array of objects alphabeticaclly by a specific field

I have an array of objects which contain a number of fields. I have a class with the constructors, setters and getters. One of the fields is name. I want to sort alphabetically all the names in the array and list them. Can anyone be of help? This is…
Alex
  • 1
  • 1
-4
votes
2 answers

Sorting an Arraylist with graphic and user input

I'm having some trouble trying to sort an ArrayList from A-Z and Z-A. This is my Arraylist: ArrayList ordlista = new ArrayList<>(); This is how the user input words into my array list: ordlista.add(txtOrd.getText()); If it's possible I…
-4
votes
2 answers

Sorting a SortedDictionary of Alphabetically, reverse Alphabetically, and the value's frequency

I'm brand new to C# and the concept of hash tables/dictionary's and have been searching for a straight answer on this for quite awhile, but I can not find any solutions that actually works (likely due to my ignorance of the subject) so I need a…
James Thompson
  • 245
  • 1
  • 6
  • 13
-5
votes
1 answer

Python: Alphabetically sorting a list with letters and numbers in

I have a list ['2,alex', '5,james', '3,ben'] I need to alphabetically sort this. The output should be ['2,alex', '3,ben', '5,james'] However using the .sort function does not work and will only sort it in a numerical order.
jjd7
  • 1
  • 1
  • 3
-6
votes
1 answer

Sorting TreeMap alphabetically

I have an object of typer person, which has a name as attribute. I have a treemap which link the person to a distance, which is an integer. I need to sort the TreeMap in alphabetical order, by looking at the name of each person in it. How can I do…
-6
votes
1 answer

Python Sorting through notepad in Alphabetical, numerical and average order

I have created a quiz that contains 10 maths questions. The quiz outputs whether or not the answer is correct. The coding also correctly stores the scores in a simple notepad document. The store is sorted into three different classes. Now I am stuck…
Peter
  • 1
  • 1
-8
votes
2 answers

Ruby Sorting Array Alphabetically

I have the Array which contains the mix data. Its like ["AB_1020", "AB_950", "AB_50", "1000", "570"] The output should be AB_50, AB_950, AB_1020, 570, 1000
urjit on rails
  • 1,763
  • 4
  • 19
  • 36
-8
votes
3 answers

Logic to generate an alphabetical sequence in C#

The sequence should go like this. A-Z,AA-AZ,BA-BZ,CA-CZ,.......,ZA-ZZ After ZZ it should start from AAA. Then AAA to ZZZ and then AAAA to ZZZZ and so on. This sequence is pretty much like that of an Excel sheet. Edit: Added my code private…
-8
votes
1 answer

How to sort a string in Android

I have a string like "RSEBAK" and I'd like to sort that string to "ABEKRS" Is it possible in android? If it is, then please guide me through.
durgesh
  • 1
  • 1
1 2 3
48
49