Load file of content by weight
When you change the order, the changes are saved as the delta in the database. For example if your field was called file you would access $node-&gt;field_file[$node-&gt;language][delta]. In your example above, the second file would be $node-&gt;field_file[$node-&gt;language][1] as the first file would be 0