mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-22 17:11:43 +03:00
do not sort files/hunks on the frontend
This commit is contained in:
parent
2c0f563bb2
commit
4ed39d7d9b
@ -77,13 +77,5 @@ export async function fetchFromTarget(params: { projectId: string }) {
|
|||||||
|
|
||||||
function sortBranches(branches: Branch[]): Branch[] {
|
function sortBranches(branches: Branch[]): Branch[] {
|
||||||
branches.sort((a, b) => a.order - b.order);
|
branches.sort((a, b) => a.order - b.order);
|
||||||
branches.forEach((branch) => {
|
|
||||||
const files = branch.files;
|
|
||||||
files.sort((a, b) => b.modifiedAt.getTime() - a.modifiedAt.getTime());
|
|
||||||
files.forEach((file) => {
|
|
||||||
const hunks = file.hunks;
|
|
||||||
hunks.sort((a, b) => b.modifiedAt.getTime() - a.modifiedAt.getTime());
|
|
||||||
});
|
|
||||||
});
|
|
||||||
return branches;
|
return branches;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user