Function filterByPlatform