hi, how do you suggest I go about sorting a list a...
# getting-started
o
hi, how do you suggest I go about sorting a list according to
created_at
where
created_at
is like
"Fri, 16 Feb 2018 10:24:59 GMT"
d
Create a
java.time.format.DateTimeFormatter
that corresponds to your pattern (using
ofPattern
). Then you can use
parse
method on that formatter and pass the result to
Instant.from
. Now you can sort the list.