When creating an app, I will add it each time so that I don't forget the method I used.
● order The order method is a method that can sort records. Writing like .order (id: "DESC") means sorting ids in DESC (descending order). The reverse of DESC (descending order) is ASC (ascending order). Do not use the order method The default is ASC.
When ordering memos in descending order.
You can now view your notes in descending order.
―――――――――――――――――――――――――――――――――――――― ● floor method Erase the decimal point and make it an integer ex. Math.floor
●ceil Round up
● include? Method The include? method is a method that determines whether the specified element is included in an array or string.