In powerapps what should the query be like to retrieve the last id from a table made in list?

In powerapps what should the query be like to retrieve the last id from a table made in list?
Try this
First(Sort(List,ID,SortOrder.Descending)).ID
Reference link : Solved: Get the last ID of Sharepoint list item to Powerap... - Power Platform Community (microsoft.com)
PowerApps First, FirstN, Last, and LastN function with examples - SPGuides
Thanks!
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.