bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/nav-bar/talking-indicator/service.js

15 lines
269 B
JavaScript
Raw Normal View History

2019-11-20 23:08:36 +08:00
const sortByStartTime = (a, b) => {
if (a.startTime < b.startTime) return -1;
if (a.startTime > b.startTime) return 1;
return 0;
};
const sortVoiceUsers = (a, b) => {
const sort = sortByStartTime(a, b);
return sort;
};
export default {
sortVoiceUsers,
};