mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-07 22:18:33 +00:00
sort folders by name first and then sequence (#5063)
* sort folders by name first and then sequence --------- Co-authored-by: lohit <lohit@usebruno.com>
This commit is contained in:
@@ -326,14 +326,14 @@ const addDirectory = async (win, pathname, collectionUid, collectionPath) => {
|
||||
}
|
||||
|
||||
let name = path.basename(pathname);
|
||||
let seq = 1;
|
||||
let seq;
|
||||
const folderBruFilePath = path.join(pathname, `folder.bru`);
|
||||
|
||||
if (fs.existsSync(folderBruFilePath)) {
|
||||
let folderBruFileContent = fs.readFileSync(folderBruFilePath, 'utf8');
|
||||
let folderBruData = await collectionBruToJson(folderBruFileContent);
|
||||
name = folderBruData?.meta?.name || name;
|
||||
seq = folderBruData?.meta?.seq || seq;
|
||||
seq = folderBruData?.meta?.seq;
|
||||
}
|
||||
|
||||
const directory = {
|
||||
|
||||
Reference in New Issue
Block a user