Added sorting functions in search
This commit is contained in:
@@ -316,18 +316,6 @@ export const useCalendar = defineStore('calendar', () => {
|
||||
return `${getMonthName(date.month)} ${date.year} ${getPeriodOfYear(date.year).short}`
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether two dates are identical
|
||||
*
|
||||
* @param date1 First date
|
||||
* @param date2 Second date
|
||||
* @returns True if the dates are identical
|
||||
*/
|
||||
function compareTwoDates(date1: LeimDate, date2: LeimDate) {
|
||||
// To refacto to be more precise
|
||||
return JSON.stringify({ ...date1 }) === JSON.stringify({ ...date2 })
|
||||
}
|
||||
|
||||
/**
|
||||
* Jumps the calendar to the given date
|
||||
*
|
||||
@@ -362,7 +350,6 @@ export const useCalendar = defineStore('calendar', () => {
|
||||
decrementYear,
|
||||
jumpToDate,
|
||||
jumpToDefaultDate,
|
||||
compareTwoDates,
|
||||
getFormattedDateTitle,
|
||||
getMonthName,
|
||||
setViewType,
|
||||
|
||||
Reference in New Issue
Block a user