Questions tagged as 'ordenamiento'

1
answer

Sort a List of Objects in Java

I have a list of my own Java objects, which need to be sorted by the property code of the object itself. List<Calle> listaDeCalles; Calle calle1 = new Calle(); calle1.setCodigo("A4"); ... listaDeCalles.add(calle1); l...
asked by 14.10.2016 / 13:24
1
answer

Android adapter to reorder by distance

I'm trying to reorder my list of items by distance (using getListView from Android, not a custom one) and I'm having problems. I'm getting the spherical distance in meters (double type) using Maps Utils inside the adapter (SomeAdapter). dou...
asked by 05.10.2017 / 19:51
1
answer

Problem when ordering queries entered by the user

I am creating a program that captures data on a page using JavaScript. I inserted the QuickSort sorting method for general queries, however, only one query is displayed on the screen even if I entered more than one. This is my code: v...
asked by 16.06.2017 / 16:45
1
answer

Go through and return a Java HashMap in order

I have the following HashMap Map<String, Float>notas = new HashMap<String, Float>(); notas.put("Examen 1", 8.0F); notas.put("1er trimestre", 9.4F); and I have the following method to go through it and show it on the screen @Su...
asked by 01.11.2017 / 21:45
1
answer

How to upload a text file to a Linked List in C ++?

How about my problem is as mentioned in the title, I have knowledge of how to make simple and double lists linked in c ++, but I have no idea how to pass information from a text file to a simple list. I have a program created in c ++ with indexe...
asked by 17.09.2016 / 07:32
4
answers

Sort array php kb, mb, gb

I have an array that filled with a query. What I get is the following: array (size=9) '128 GB' => array (size=1) 0 => string '156' (length=3) '16 GB' => array (size=2) 0 => string '106' (length=3) 1...
asked by 09.11.2016 / 20:26
1
answer

Does not order data with format ##, ## 0.00 VB.NET

I have an application that makes some calculations and I save them in a datagridview, to a column I give the currency format in this way: Format(totalMarca, "##,##0.000") So far so good, but I try to sort the data and do not do it. The fo...
asked by 27.03.2018 / 17:43
1
answer

how can I sort 2 columns per schedule as if it were one

I have 2 columns, the first is arrival_time, the second is pick_up, the question is the following, I need to sort the results depending on what type of service it is, if it is for example arrival (arrival) you have to select the schedule of the...
asked by 05.03.2018 / 02:09
2
answers

Doubt with hashmap [closed]

I have the following list: List<DatosAutores> datosAutor= new ArrayList<DatosAutores>(); datosAutor.add(new DatosAutores("157","Joaquín Ordóñez Sedeño","[email protected]","Anuario Mexicano de Derecho Internacional","4027","Dere...
asked by 09.01.2016 / 00:43
1
answer

Sort linked lists (LinkedList) in c?

I'm doing a project in C, but I got stuck when I wanted to order the Nodes. I have methods to fill and eliminate the nodes, the problem comes when trying to order does not do anything, it leaves it as it is. When entering a user I assigned his n...
asked by 27.03.2017 / 05:34