Questions tagged as 'order'

1
answer

Sort array of objects [duplicate]

I have the following data as a result of querying the database: Array ( [0] => stdClass Object ( [id] => 1 [nome] => Pizzaria 1 [latitude] => -8.12044775643893 [longitud...
asked by 29.05.2014 / 20:22
1
answer

How to sort a category post by a Custom field?

I have a platform in Wordpress where a particular category has a Custom field. Is it possible to display the posts in this category if they are sorted by the Custom field that I added?     
asked by 06.10.2016 / 19:08
1
answer

mysql select order by starting today's date

I have this query that looks for birthdays of the month: $mesHoje = date("m"); $sqlAni = $pdo->prepare('SELECT * FROM aniversario WHERE MONTH(dia) = :mesHoje ORDER BY dia ASC'); $sqlAni->execute(array("mesHoje" => $mesHoje)); How d...
asked by 23.10.2018 / 16:29
1
answer

Sort a linked list with Selection algorithm in Java

I'm working with sorting algorithms. I implemented by ordering with Bubble sort, however, must be implemented with an example where the algorithm is not stable (Selection, Quicksort, Heapsort or Introsort). The idea is to sort a list of integers...
asked by 02.05.2018 / 15:33
1
answer

How to organize an array by size automatically?

I was looking to create a ranking system. For this I thought of putting all the values inside a Array and then through a function to organize it from the largest to the smallest. However, every time I do each position, I always have to ma...
asked by 13.10.2017 / 18:32
1
answer

java response json out of order

I'm doing an API in java to be consumed by Excel. I'm doing a select from the bank bringing the columns in the right order, but when it arrives in Excel comes in a crazy order. I also made a method with: Class.forName("className").getDeclar...
asked by 24.08.2017 / 22:25
1
answer

Problem when ordering posts in wordpress

Hello, good morning. Well, I'm having trouble sorting posts in wordpress categories. Ex: I have the category news, movies, music, images .. I want to sort the posts of these categories in ascending order. I used the following code <?p...
asked by 28.09.2016 / 15:44
1
answer

How to loop a custom post type following the menu_order?

On a static page in wordpress I'm looping a custom post type from a list of services as follows: $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('showposts=14&post_type=servicos'.'&paged='.$pa...
asked by 21.07.2014 / 07:18
0
answers

Dynamize HTML with JQUERY [closed]

Hello, I'm having trouble with a JS activity, I should make the last posting to be displayed first, I already tried sort, tried sort with function and nothing solves, I can change the order of objects in the array more I can not change the order...
asked by 26.07.2018 / 18:18
2
answers

order by in oracle subquerys

RESOLVED I decided to create a view equal to my work order table plus it was ordered by the team and the priority, and I kept the above query by changing only the table of the subquery that I placed the view I created, so I do not have to wor...
asked by 23.08.2017 / 15:04