Questions related to sorting of results, usually retrieved from a database.

learn more… | top users | synonyms

0
votes
2answers
64 views

How to sort content in Views by menu weight

I have a D7 Views view which delivers a number of nodes. I would like them to be sorted based on the weight that their relevant menu items have. I would like to avoid the fine module DraggableViews ...
0
votes
2answers
58 views

How to get view by tag sorting the same as main view sort criteria

I am new to Drupal 7. I have a view set up at /people with the sort criteria set to a field called surname. This is working fine, listing people out alphabetically by surname. I have tags associated ...
0
votes
2answers
106 views

I have no fields available for sorting with Search API sorts module

This question is similar to another question I had, but now in a different context. My previous question was: Search text box for Search API + Database + Search Views + Facets API + Facets Bonus ...
2
votes
1answer
44 views

Views sorting by number of values in field

I have a content type with an text field with unlimited number of values. I have a view for that content type and I want to sort it by number of values in that field. How can I do that in Views?
0
votes
1answer
18 views

Extra sorting criterium in case of ex aequo with Views

My articles have a 'Ranking' field, which contains an integer. I have a view that sorts articles depending on this value: the article with the highest score is a the top. Now, in case of an ex aequo, ...
0
votes
0answers
91 views

Views - Select list field type as sorting order criteria

I have a view which uses a custom field called article type as it's sorting criteria to sort articles. This article type field, has the following options: 0Editorials|Editorial 2Feature|Feature ...
0
votes
1answer
123 views

Drupal 7 views complex sort

I have a drupal view which displays 10 items. I have 3 items which need to remain at the top of the list, which i have done by making them sticky. These need to be in a particular order. The the rest ...
0
votes
1answer
39 views

Advanced sorting question about drupal views

I have a content type with latitude and longitude coordinate fields. i have a view that is displayed on each page with this content type, and a google map plotting the location. Is there any way to ...
0
votes
1answer
56 views

Only sort views after selected

I am looking to sort nodes in a view, but only after the user has selected the sorting value. So the nodes are currently listed in posting order, but I would like to provide the user to sort by ...
0
votes
0answers
16 views

Do not sort until selected

For a view I have the sorting in the following order: Sticky Posting Date Artist Title I am looking to add in sorting by Price, but I do not want the initial display to sort by price (ie most ...
0
votes
0answers
30 views

Sort view fields alphabetically with aggregation on

I currently have a views page which displays a list of all authors with the number of publications they published. This was accomplished using aggregation. I would also like to sort the author names ...
0
votes
1answer
162 views

Is there a way to create a sort option for search results that works together with facets?

I'm using Drupal Commerce along with Search API and Facet API to create a search for my product dispays. Is there a way to create a facet that sorts products by price? I've tried using the exposed ...
0
votes
1answer
79 views

Order nodes based on entity reference filter

In my Drupal 7 website I have an A content type with an entity reference 'parent' field which I use to link to nodes of a B content type. I have to implement a way to sort A nodes basing on their B ...
0
votes
1answer
63 views

Ordering Users for use in view

I have a view that displays data for each user. Now I would like to be able to order the users. One solution would be to add a new field called something like field_weight to the user content type ...
2
votes
1answer
35 views

How to put a date token at the start of Backup and Migrate file name pattems?

Because Backup and Migrate sorts files by age, when you untar or copy some files to a destination, they will be more or less the same date and it may be hard to tell which ones are the latest etc. ...
0
votes
2answers
108 views

Customize order of a list in Drupal 6

I have a list of links that are all displayed as one list. They are currently sorted by 'Title' asc. I would like to customize the order of this list. How can I do that in Drupal 6. Example: A1 ...
1
vote
2answers
142 views

Can't we sort a “Node module element”?

I'm creating a new content type named "Portfolio". Image 1: I put a name to the "Title field label": Project Name Image 2: That thing works as a 'Node module element' in Fields Image 3: I can't ...
1
vote
1answer
86 views

Exposing sort breaks order

In my view I am exposing two sort options in the following order: Date > Newest First Title > A-Z When both sort options are exposed it will correctly display the nodes sorted by date but will ...
2
votes
1answer
464 views

Views: custom field for sort criteria

My View has a " Global: Custom text"- Field that contains Integers (1,3, ..). The field is overwritten by a php-Template. I want to add this field to "Sort criteria", so the view can be sorted - but ...
1
vote
2answers
561 views

Combine views sort criteria in exposed form

Drupal 7, views 3.6. I have a view with 2 sort criteria: date and category. The sort is exposed in a form block. Currently the user only has the choice to select 1 sort criteria, ie: sort by date ...
0
votes
0answers
59 views

Sort forum topics on 'created time' instead of 'changed time'

I have Advanced Forum installed in Drupal 7. I would like to have the topics sorted by the created time of the topic instead of the changed time (it seems to be this is done by default). Only when a ...
0
votes
1answer
55 views

Job board: Faceted Search with “OR” operator, but sort results by most matching facet criterias/term count

I'm quite stuck with searching for a solution for my problem and I hope that you can maybe help me. In general I want to build a small job platform. It includes an "Explore"-Section, which is just ...
1
vote
0answers
49 views

Apply Radioactivity in Hashtags like twitter

How to apply radioactivity sorting using Radioactivity module(like trending in twitter) to taxonomy terms as Hashtags in block. Now i apply sorting criteria hashtags:delta. Whether any other module ...
1
vote
0answers
150 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
65 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
509 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
87 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
207 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
18 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
225 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
176 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
148 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
147 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
110 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
137 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
127 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
27 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
118 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
180 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
49 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
342 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
45 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
21 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
139 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
286 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?
1
vote
4answers
202 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
221 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
224 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
341 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, ...
2
votes
0answers
156 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 ...