Questions related to sorting of results, usually retrieved from a database.
1
vote
0answers
25 views
Sorting prices from 3 product line item types using views
My goal is to display a message like "Prices start from 13.34$" for every taxonomy term that I created. I have 3 product types with 3 product line item types. What I did until now and I'm stuck is to ...
0
votes
0answers
36 views
Sort items in the header of a view?
I have a view with a page and a block;
the page shows :
- first part : taxonomy terms in the header;this header comes from the block of the View (using Global: View area)
- second part : ventilation ...
2
votes
1answer
41 views
Views: how to ASC sort the grouping field #1 and sort DESC its content?
I have views grouped by year (grouping field #1) that I want to sort from the most recent to the oldest. I have content referenced to the year.
This returns me a HTML list such as:
2013
- alpha
- ...
0
votes
0answers
10 views
Sortable Grid Views plugin not saving
I'm using Drupal 7 and Sortable Grid View plugin Created a view and:
Format: Sortable Grid
Sort Criteria: Sortable Grid: Rank (asc)
When i sort my items and Save button, get this text: Order Saved ...
0
votes
0answers
20 views
Sorting Hierachically Taxonomie Terms with Views Isotope
I've got a Vocabulary with additional Fields added to the Taxonomy.
So for example i've got an View with an overview of all Logos (additional Field from Taxonomie) and the Logos linking to the ...
0
votes
0answers
11 views
sync the sorting between page and attachement displays
I have a view with 2 displays : a page, and attachment to it. Both have table style.
I have enable to sort them by clicking on the columns headers.
How can I can have the same sorting order in both ...
0
votes
0answers
37 views
Conflicting sort and group criteria in Views
I have a content type event which i want to show in a list. The list is quite complex. What i want to achieve is the events sorted and grouped by date and then sorted and grouped by category. I can't ...
1
vote
1answer
49 views
which hook to change the node order in a view?
I have a custom view but now I want to put the nodes created by a specific user role on top.
I want to do this using code so I can easily implement this throughout multiple web pages.
I'm thinking ...
0
votes
2answers
57 views
How to sort a view so that, say, all the nodes with stock=0 come last, and not sort by stock?
I want to sort an output of a view so that the elements with a filed value of "0" be at the end of the list, but all the others are to be treated equally. In fact, it's an Drupal Commerce site, and I ...
3
votes
1answer
54 views
Flags - Recreate the 'poke' function
I need to create a flags view that displays a list of users that have "poked" the current user with D7, Views 3 and Flag 3. I've read through this question and drupal.org/node/296971, neither ...
0
votes
1answer
65 views
How to make a table sortable by CCK field
An odd question: I have a custom column added to the default admin/content page that shows the value of a CCK field "field_foo". I'm trying to sort the table by this field. (I can't use Views for this ...
0
votes
1answer
56 views
How to generate a List of Dates with Start/End sorted by Month in Drupal7?
I have installed Drupal7 and created a content type (why not call it 'event' for now) to which I added a date field (lets name it 'event-date'). Some event-dates have start- and end-dates.
Now I want ...
0
votes
1answer
52 views
How to apply image style to image field in view based on the sort position of that image field?
my homepage is done with panels. Home panel contains a view that displays specifically 9 nodes that contain image field. Sort criteria is Random. These 9 nodes are in three rows each containing three. ...
1
vote
1answer
20 views
Adding titles to sorted nodes in a View
So I'm struggling again with my sorted links: there are many many links (node type) which also contain the field "link_category".
I collect them all in a view and sort them by "link_category".
It ...
0
votes
0answers
51 views
Sort tableselect on taxonomy name (not tid)
So I've got a nice list of products in a tableselect element, like this:
$form['nodes'] = array(
'#type' => 'tableselect',
'#header' => $header,
'#options' => $options,
'#empty' ...
2
votes
0answers
92 views
Field values sometimes do not show up in grid view or node view for non admin users (Drupal 7)
I have a view that is sorted by the number of times a user visits a node and clicks the play button (the play button is a menu item of the node). Every time the play button is pressed the value of an ...
0
votes
1answer
34 views
Add weight parameter in a custom module
I created a content type and it has many nodes. And I wrote a custom module to show nodes on the front page.
My nodes order:
$themeurl = '/drupal/'.path_to_theme().'/images';
$sql = "SELECT * ...
1
vote
1answer
49 views
New to Drupal and views, how do I change the order of my fields?
How do I change the order of these fields? See the image.
I want to be able to change the output order of these fields.
0
votes
2answers
40 views
Show new result each time I visit the page
I want to display a result in a view, and each time I visit the page, the result will be the next node from the choosen contenttype.
Is this something I can manage in views or is there any other way?
...
0
votes
1answer
20 views
View Paid Sorting
I wanted to do something like following scenario.
So for example I have a view of content type 'mycontent'.
Bob wants to be on the top and he is paying me money for it. Is there any way I can show ...
1
vote
1answer
70 views
Field sort random via PHP
I have a image field and use on cycle.
field.tpl.php:
<?php
?>
<div class="<?php print $classes; ?>"<?php print $attributes; ?>>
<?php if (!$label_hidden): ?>
...
0
votes
2answers
117 views
Random image with Cycle
I'm using Drupal Cycle module and list field_images items. I check 'random' button but not working. I want get random image every refresh page. How can do it? field_sort_items or anyway solution?
3
votes
4answers
94 views
Sort nodes by latest comments on it
I am using D7. I want to sort the nodes by the comment post date on it.
Like
Node a created on Jan 03
Node b Created on Jan 05
Normally i can sort it either asc or desc.
What i want is a node ...
1
vote
1answer
105 views
How to render random image on every refresh page
I have got a content type and an image field.
How can I render the field with a random image at every page refresh.
1
vote
1answer
112 views
Drupal 7 CCK number
As long as I know there is no number field in Drupal 7. All I can see is a List(integer) field. The problem that I'm facing is in sorting with respect to this field in views. I want my content to be ...
1
vote
1answer
163 views
Drupal 7 views - sort results after they have been retrieved from database just before they are rendered
Drupal 7 views - sort results after they have been retrieved from database just before they are rendered.
Here what type of hook need to use.Is the below hook usefull?
hook_views_data_alter()
Thanks,
...
1
vote
0answers
43 views
Why Content Path cannot be used to sort a view?
Using Views with Drupal 7, how can I use the content path to sort a a table of result ?
I have node title, node created date and node path as fields for a view.
The first two fields have the checkbox ...
1
vote
0answers
62 views
Views sortable table column exposes field name in url
I have created a view that uses a table format with several columns. Via format settings, I have chosen some of them to be sortable (by checking the respective checkboxes and and selecting the default ...
0
votes
1answer
93 views
Drupal 6 sort order module for admin panel
I want to display data from tables in admin panel and want to sort it by numeric order.
And when the sort order will changed, sort order should store in database.
All the data will display in admin ...
0
votes
1answer
87 views
Using multiple sort criteria on a view, can't get them to play nicely
So, I have a view (D7, Views 3) that provides a list of staff with a thumbnail image based on a location "contextual filter". Some staff members are set as "sticky" and need to appear above all the ...
1
vote
1answer
94 views
Create a block with sorting in drop down
Using Organic group module, In the block I want to create sort dropdown as shown in image. Which will allow to sort the data according to various parameters like date, tag, group etc.
How can I ...
1
vote
1answer
90 views
draggableview on grouped taxonomy tag
I have a content type with a taxonomy tag and some fields.
i use these content type in a view which groups the nodes by its tag and print out some fields.
now i want these tags in a specific order, ...
1
vote
1answer
262 views
Display field collection items together with nodes in view sorted by date
I would like to create a view, which would list all the events of an organization (please look at the mockup). The problem is, that some of the are part of longer series, so I had to group them ...
1
vote
1answer
25 views
Preventing frequently updated nodes from keeping them on the top of View
I have a view that lists content profile node and set the sort criteria to node:Updated date.
However, the problem is that some of the users updates their content profile node everyday to keep it on ...
4
votes
3answers
292 views
How do you define an arbitrary sort sequence for views?
Take a look at the Drupal issues queue and the Priority column. If sorted in descending order you get critical, major, normal, and minor issues, in that order. Since "normal" would not go between ...
0
votes
0answers
293 views
Drupal views multiple sort criteria
I have multiple content types in drupal and they both use different date fields. One is using blog_date and second post_date. When I merge them in one view and try to sort by multiple sorting ...
1
vote
0answers
25 views
How to sort feed aggregator's items in Views according to its category?
How to sort feed aggregator's items in Views according to its category? I have two category : infographics (category id = 1) and others (category id = 2). I want to show items from infographics first ...
0
votes
1answer
203 views
Entity reference no sorting by field
I have a problem that I have not been able to find the solution. I have an entity reference field for a node to display specific news I need them to be sort them by the date they were created by the ...
2
votes
1answer
148 views
Drupal 7 and taxonomy views - sorting by number in URLs
How can I tell Drupal 7 that 99 should go AFTER 100 when sorting items (descending) according to a number in URL or in Title?
I have this taxonomy view for magazine articles. Published issues range ...
0
votes
1answer
92 views
How to sort the event date get from Google Calendar
Drupal 7: I got the Event Date and Title from Google Calendar using private xml feed .
How can i sort the Event Date in Ascending Order.
Help me.
Thanks & Regards
Little Drop
3
votes
2answers
544 views
How do you change the default sort in apachesolr?
I've been trying to get this figured out for a couple days now, and I feel like I'm close, but as of yet no cigar. I need to make the apache solr search on the site I'm working on to have two sorts, ...
0
votes
1answer
51 views
Views: sort criteria -> Post date, not start from latest but latest-3
is there a possibility to sort articles by postdate, but exclude the latest 3 and start with number 4 (because the latest 3 are already displayed in another view).
Or even better: is there in ...
1
vote
1answer
202 views
Reordering values in a multi value field
Is there a module that allows you to reorder the values of a multi value field? By drag and drop or by weight.
Example:
Field XYZ:
+ Value 1
+ Value 2
+ Value 3
+ Value 4
Reorder to:
Field XYZ:
...
1
vote
2answers
2k views
How to display exposed sort in views using one drop-down widget?
By default Views 3.0 module for Drupal 7 uses two drop-downs to display exposed sort. First drop-down to select field name, and other one - to select sort direction.
How do i can exposed sort in ...
3
votes
1answer
149 views
Sort a view by country - according to the translated countries
I have a view displaying some nodes of a content type. Each node has a location assigned (with the location module).
I want to group and sort the results by countries. The grouping works fine, and ...
1
vote
0answers
190 views
Custom criteria of summary items with contextual filters in Views
Drupal 7. Views 3.
I have two contextual filters: terms of a vocabulary and dates. The no-results behavior is to display a summary, so I get three different screens in my view.
In the first ...
1
vote
0answers
97 views
Taxonomy: Sort Order for Nodes Under Multiple Lists
I am creating a restaurant menu vocabulary that contains terms and sub-terms. Menu Items (nodes) may be listed under more than one item.
For example Cobb Salad is listed under:
Appetizers >> Salads
...
0
votes
0answers
69 views
Sort nodes by comment field
What i'm trying to do is to create a site for doing price comparison on bodybuilding supplements simlar to www.priceplow.com.
I intend to create a content type called supplement and a taxonomy ...
3
votes
2answers
266 views
Views: Sort By Global Math Expression Result?
I have created a global math expression field in views, and I want to sort the results by the results of the math expression.
In particular, I use Drealty to connect to a RETS server and download ...
0
votes
1answer
145 views
Custom sort to preserve order of referenced nodes
I have a node type that references other nodes. When viewing node of Content Type A, I have set up a view that displays all references to nodes of Content Type B on a gmap.
This is the code from a ...

