Your need is to get the recently updated group chats of a specific user, so first of all, you need to filter with $filter, make sure that the type you get is a group, and then you need to sort the obtained group chats in descending order according to the update time. so that the first place is the most recent group chat.
The $top parameter is used for pagination, and the value of top is used to indicate the number of articles displayed on each page, obviously it can't be used for sorting, so we need to use $orderby parameter sorts the update time in descending order.
The request code is as follows:
https://graph.microsoft.com/v1.0/users/{user-id}/chats?$orderby=lastMessagePreview/createdDateTime desc&$filter=chatType eq 'group'
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.