/**
* Class for comparing photos to sort them by name or timestamp
*/
public class PhotoComparer implements Comparator<DataPoint>
{
/**
* Class for comparing photos to sort them by name or timestamp
*/
public class PhotoComparer implements Comparator<DataPoint>
{
if (!inP2.hasTimestamp()) return -1;
if (!inP1.hasTimestamp()) return 1;
// Compare the timestamps
if (!inP2.hasTimestamp()) return -1;
if (!inP1.hasTimestamp()) return 1;
// Compare the timestamps