SecrecySupportTeam / secrecy

http://forum.xda-developers.com/showthread.php?t=2704486
Apache License 2.0
79 stars 27 forks source link

Sort By Date Added #112

Closed ghost closed 9 years ago

ghost commented 9 years ago

Could you please add a new sorting option in which the files in the vault are sorted by the date added ?

L-Henke commented 9 years ago

This would be an interesting option. But it is more complicated than it might sound, because we would have to modify our file header to include the date when this file has been added. So this touches the whole encryption layer and we would have to maintain two different header versions. (Which could be handled by the update manager). But changes like this have to be tested thoroughly so don't expect this to happen too soon, but we might work on it.

Edit: Sort by file type should be a much easier, because we wouldn't have to modify the file headers and encryption layer. Maybe we'll implement this first.

ghost commented 9 years ago

It would be really helpful if you could implement that

L-Henke commented 9 years ago

Sort by file type added with #114

Doplgangr commented 9 years ago

A quick gut-instinct of implementing a function like this comes to me as using the file timestamp.

Currently the encrypted files are rarely rewritten, so I suspect that we can use the file timestamp of the file header with

 file.lastModified() 

and sort it with the value returned.

Of course, it must be useful to include the file creation date in the file header at some point, but a current workaround should be possible.

Doplgangr commented 9 years ago

Closed by #131