I'm using Ionic Native to read files in the user device, but I need to sort them by modification date.
The method to read the files returns Promise<Entry[]>. To find out the modification date, I need to call Entry's getMetadata method which has the following signature:
getMetadata(successCallback: MetadataCallback, errorCallback?: ErrorCallback): void;
Then in the success callback I have access to the Metadata object which has the modificationDate property I need for sorting.
I'd appreciate any help I can get.