Moved loading of DB records out of SortSimilar
Added log message for filtering records
Added auto-format on save option
Added custom formatter