Ordering of referenced entity I have created one content type named "collection", where I will be grouping the related articles into collection. The content type itself has other fields like title, tags etc.

To add article into collection, I have created field of type referenced entity and is working fine. Also use can add multiple articles into collection.

Now I wanted to provide the user to manage order of the articles in the collection, so that article can be arranged in proper order. 

So at the time of selecting article, user also decides its order/weight.

Is there any drupal module that helps in achieving this or how can I achieve it if no module is there.

-- Thanks for your time
If you are using Entity reference has the option to sort. I will give you three choices.

1. Manually:

Go to the /node/nodenumber/edit and you can specify the order that you want  Manually seems to be your best choice because it is your user who decides the order

2. Programatically

If want to order by descending (Ascending is the default). The only it worked for me was to use array_reverse:

$value -&gt; field_reference_field_to_reference['und']=array_reverse($value -&gt; field_reference_field_to_reference['und']);
$value -&gt; field_reference_field_to_reference['und'][]['target_id'] = $node -&gt; nid;
$value -&gt; field_reference_field_to_reference['und']=array_reverse($value -&gt; field_reference_field_to_reference['und']);
node_save($value);


3. Fields settigs in the entity reference

There is another option of sorting in your content type field settings: 

/admin/structure/types/manage/volunteer-profile/fields/field_reference 

and then you can tell it to sort by

However, to be honest the last method  number 3 has not worked for me for some reason. If you made it work. Please let me know your solution. I would love to know what am I doing wrong. :)