Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1077 from owncloud/bug_new_version_detected_in_do…
Browse files Browse the repository at this point in the history
…wnloaded_folders

Bug fixed. The problem is on that the server return some files in a d…
  • Loading branch information
javiergonzper authored Aug 28, 2018
2 parents 2f427b0 + fe92593 commit 4feb571
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Owncloud iOs Client/Utils/UtilsDtos.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ +(NSMutableArray*) passToFileDtoArrayThisOCFileDtoArray:(NSArray*)ocFileDtoArray
}

ocFileDtoArray = nil;


//Reorder the array to prevent problems with special characters like emojis or "@"
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"fileName" ascending:YES];
fileDtoArray = [NSMutableArray arrayWithArray:[fileDtoArray sortedArrayUsingDescriptors:@[sortDescriptor]]];

return fileDtoArray;
}

Expand Down

0 comments on commit 4feb571

Please sign in to comment.