I have a custom Post object that stores the date the post was created and using Firestore, all date objects get stored as String values.
I have a screen that displays all the posts on a tableview by retrieving the data from the database to create custom Post objects and then adding them to a custom array that stores posts
var postArray: Post
As mentioned, each post has a date stored as a string. How do I sort the array by date (string)?