A filter to convert your objects to an array that can be filtered and sorted easily