import {ConversationSorting} from 'js-chat-demo/utils/ManagedConversationList.jsx'
ConversationSorting
Convenience class to create Conversation compare functions for sorting. It's just a regular compare function that expects 2 Conversation records.
Example:
new ConversationSorting('title','ascending')
=> function(a,b) { ... }
Constructor Summary
Public Constructor | ||
public |
constructor(attribute: string, order: string) |