mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
Add TODO
This commit is contained in:
parent
758cbdc8cf
commit
5b38c0c31a
@ -54,6 +54,7 @@ const Merge = ({ onPreviewFile, onComplete, onError }: BaseToolProps) => {
|
||||
setCurrentMode("merge");
|
||||
};
|
||||
|
||||
// TODO: Move to more general place so other tools can use it
|
||||
const sortFiles = useCallback((sortType: 'filename' | 'dateModified', ascending: boolean = true) => {
|
||||
setSelectedFiles(((prevFiles: File[]) => {
|
||||
const sortedFiles = [...prevFiles].sort((a, b) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user