/**
 * Given a list of photos, sorts them based on their date in ascending order.
 *
 * @param photos A list of pairs containing the photo information. Each pair has the format (photoId, dateTaken).
 * @return sortedPhotos A list of pairs containing the sorted photo information based on date.
 */
fun sortPhotosByDate(photos: List<Pair<Int, String>>): List<Pair<Int, String>> {

    return photos.sortedBy { it.second }
}
/**
 * Given a list of photos, sorts them based on their date in ascending order.
 *
 * @param photos A list of pairs containing the photo information. Each pair has the format (photoId, dateTaken).
 * @return sortedPhotos A list of pairs containing the sorted photo information based on date.
 */
fun sortPhotosByDate(photos: List<Pair<Int, String>>): List<Pair<Int, String>> {
/**
 * Given a list of photos, sorts them based on their date in ascending order.
 *
 * @param photos A list of pairs containing the photo information. Each pair has the format (photoId, dateTaken).
 * @return sortedPhotos A list of pairs containing the sorted photo information based on date.
 */
fun sortPhotosByDate(photos: List<Pair<Int, String>>): List<Pair<Int, String>> {

    return photos.sortedBy { it.second }
}