Note: ASC or DESC does not work here, need to use either ascending or descending
http://community.lithium.com/community-name/restapi/vc/users/online/sort_by/last_visit/order/[sort_direction]
Here is the documentation
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"233","postTime":"2017-10-10T03:47:36.811-07:00","lastPublishTime":"2017-10-10T04:04:47.162-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":383},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:Developer/community:lithosphereboard:studio/message:326055/message:326057","customFields":[]},"ForumReplyMessage:message:326066":{"__typename":"ForumReplyMessage","uid":326066,"id":"message:326066","revisionNum":1,"author":{"__ref":"User:user:55712"},"readOnly":false},"ModerationData:moderation_data:326067":{"__typename":"ModerationData","id":"moderation_data:326067","status":"APPROVED","rejectReason":null},"AcceptedSolutionMessage:message:326067":{"__typename":"AcceptedSolutionMessage","author":{"__ref":"User:user:55712"},"id":"message:326067","revisionNum":1,"uid":326067,"depth":7,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:studio"},"parent":{"__ref":"ForumReplyMessage:message:326066"},"conversation":{"__ref":"Conversation:conversation:326055"},"subject":"Re: Online users API call - what order are these results?","moderationData":{"__ref":"ModerationData:moderation_data:326067"},"body":"
Here is the exact call you are finding
/restapi/vc/users/online/registered?users_online.sortby=-last_visit
/restapi/vc/users/online/registered?users_online.sortby=+last_visit","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"188","postTime":"2017-10-10T04:49:25.119-07:00","lastPublishTime":"2017-10-10T04:49:25.119-07:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":344},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:Developer/community:lithosphereboard:studio/message:326055/message:326067","readOnly":false,"editFrozen":false,"body@stringLength":"404","rawBody":"
Here is the exact call you are finding
/restapi/vc/users/online/registered?users_online.sortby=-last_visit
/restapi/vc/users/online/registered?users_online.sortby=+last_visit","customFields":[]},"ModerationData:moderation_data:326076":{"__typename":"ModerationData","id":"moderation_data:326076","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"Rank:rank:269":{"__typename":"Rank","id":"rank:269","position":17,"name":"Boss","color":"333333","icon":null,"rankStyle":"TEXT"},"Revision:revision:326076_1":{"__typename":"Revision","id":"revision:326076_1","lastEditTime":"2017-10-10T05:47:07.289-07:00"},"QueryVariables:ReplyList:message:326076:1":{"__typename":"QueryVariables","id":"ReplyList:message:326076:1","value":{"id":"message:326076","sorts":{"postTime":{"direction":"ASC"}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":true,"useBody":true,"useKudosCount":true,"useTimeToRead":false,"useMedia":false,"useReadOnlyIcon":false,"useRepliesCount":false,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":false,"attachmentsFirst":5,"useTags":false,"useNodeAncestors":false,"useUserHoverCard":false,"useNodeHoverCard":false,"useModerationStatus":true,"usePreviewSubjectModal":false,"useMessageStatus":true}},"CachedAsset:text:en_US-components/community/NavbarDropdownToggle-1744142047000":{"__typename":"CachedAsset","id":"text:en_US-components/community/NavbarDropdownToggle-1744142047000","value":{"ariaLabelClosed":"Press the down arrow to open the menu"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1744142047000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1744142047000","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1744142047000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1744142047000","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1744142047000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1744142047000","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved","topicAlreadySolvedErrorTitle":"Solution Already Exists","topicAlreadySolvedErrorDesc":"Refresh the browser to view the existing solution"},"localOverride":false},"CachedAsset:text:en_US-components/messages/LinearReplyList-1744142047000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/LinearReplyList-1744142047000","value":{"title":"{count, plural, one{# Reply} other{# Replies}}","title@board:BLOG":"{count, plural, one{# Comment} other{# Comments}}","title@board:TKB":"{count, plural, one{# Comment} other{# Comments}}","title@board:IDEA":"{count, plural, one{# Comment} other{# Comments}}","title@board:OCCASION":"{count, plural, one{# Comment} other{# Comments}}","noRepliesTitle":"No Replies","noRepliesTitle@board:BLOG":"No Comments","noRepliesTitle@board:TKB":"No Comments","noRepliesTitle@board:IDEA":"No Comments","noRepliesTitle@board:OCCASION":"No Comments","noRepliesDescription":"Be the first to reply","noRepliesDescription@board:BLOG":"Be the first to comment","noRepliesDescription@board:TKB":"Be the first to comment","noRepliesDescription@board:OCCASION":"Be the first to comment","noRepliesDescription@board:IDEA":"Be the first to comment","messageReadOnlyAlert:BLOG":"Comments have been turned off for this post","messageReadOnlyAlert:TKB":"Comments have been turned off for this article","messageReadOnlyAlert:IDEA":"Comments have been turned off for this idea","messageReadOnlyAlert:FORUM":"Replies have been turned off for this discussion","messageReadOnlyAlert:OCCASION":"Comments have been turned off for this event"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageView/MessageViewInline-1744142047000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageView/MessageViewInline-1744142047000","value":{"bylineAuthor":"{bylineAuthor}","bylineBoard":"{bylineBoard}","anonymous":"Anonymous","place":"Place {bylineBoard}","gotoParent":"Go to parent {name}"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/common/Pager/PagerLoadMore-1744142047000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/common/Pager/PagerLoadMore-1744142047000","value":{"loadMore":"Show More"},"localOverride":false}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"studio","messageSubject":"online-users-api-call---what-order-are-these-results","messageId":"326055","replyId":"326076"},"buildId":"hMrOwOM2db7Qwbeh-kdA8","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openTelemetryClientEnabled":false,"openTelemetryConfigName":"lithosphere","openTelemetryServiceVersion":"25.3.0","openTelemetryUniverse":"prod","openTelemetryCollector":"http://localhost:4318","openTelemetryRouteChangeAllowedTime":"5000","apolloDevToolsEnabled":false,"inboxMuteWipFeatureEnabled":false},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["./components/seo/QAPageSchema/QAPageSchema.tsx","./components/community/Navbar/NavbarWidget.tsx","./components/community/Breadcrumb/BreadcrumbWidget.tsx","./components/messages/TopicWithThreadedReplyListWidget/TopicWithThreadedReplyListWidget.tsx","./components/messages/MessageView/MessageViewStandard/MessageViewStandard.tsx","./components/messages/MessageListForNodeByRecentActivityWidget/MessageListForNodeByRecentActivityWidget.tsx","./components/community/FooterWidget/FooterWidget.tsx","./components/customComponent/CustomComponent/CustomComponent.tsx","./components/community/FooterWidgetHelpLink/FooterWidgetHelpLink.tsx","./components/community/KhorosLogo/KhorosLogo.tsx","../shared/client/components/common/List/UnstyledList/UnstyledList.tsx","./components/messages/MessageView/MessageView.tsx","../shared/client/components/common/List/ListGroup/ListGroup.tsx","./components/messages/MessageView/MessageViewInline/MessageViewInline.tsx","../shared/client/components/common/Pager/PagerLoadMore/PagerLoadMore.tsx","./components/customComponent/CustomComponentContent/TemplateContent.tsx"],"appGip":true,"scriptLoader":[{"id":"login","src":"https://community.khoros.com/t5/s/lithosphere/pagescripts/1725471619000/login.js","strategy":"afterInteractive"},{"id":"messengerInit","src":"https://community.khoros.com/t5/s/lithosphere/pagescripts/1733505180000/messengerInit.js","strategy":"afterInteractive"}]}