Need to sort datetime field array in ascending order


We have a datetime field array and want to sort it in ascending order. Please let me know how to do it. If you have any code snippet please share which will be helpful.

Thanks in advance.

  Discussion posts and replies are publicly visible