Added timestamp to chats. Added sorting by _id for chats GET.