field_info_instances function to retrieve all fields info under a content type. (ex:
But the return array fields are not ordered as I expected. I need to get fields in order as I mentioned in content type (as per weights).
For ex, a filed weight is 8 (8th position from top) in manage fields list. but in the return array it is displaying in top.
Is there any possibility to get the fields in order?
Manage fields screen (below)
field_info_instances output (below)