I'am studying firebase and using react, and right now I just stopped in this code:
{photos.map(url => (
        <div key={url} style={card}>
          <img src={url} style={image} />
          <div
            style={{
              margin: '10px',
              display: 'grid',
              gridTemplateColumns: '20px 1fr',
              gridGap: '20px',
              alignItems: 'center',
            }}
          >
            <div
              onClick={() =>
                favoritesURLs.includes(url)
                  ? unfavorite(url)
                  : favorite(url)
              }
            >
              <Icon
                type='star'
                size={20}
                strokeWidth={1}
                fill={favoritesURLs.includes(url)}
              />
            </div>
          </div>
        </div>
      )).sort(photos.timestamp)}
The photos object is something like this:
["https://firebasestorage.googleapis.com/v0/b/0e0f89095ff2", 1585587393344, "https://firebasestorage.googleapis.com/v0/b/ad8c81e0798e", 1585587393351, "https://firebasestorage.googleapis.com/v0/b/d42de0a22961", 1585587393369]
The images are showing, just like the timestamps hahahahahaha How can I show just the images using the timestamp to sort?
 
     
    