Improve file sorting algorithm.
Add more file extension names.
Fix data type mask size.