Problem statement

In this challenge you have a list of items. Each item on the list is a doctor profile that contains basic information of each doctor and a number of likes. You also have an option to write a comment about a specific doctor, you can use an input that is located directly below each profile.

You have a set of profiles ready to be shown and ProfileCard component that takes a profile prop and renders a single profile. You used v-for directive to iterate through the profiles array render the list.

One of the requirements was to implement sorting on the list based on the number of likes each doctor has. You implemented sortAsc and sortDesc methods for that and you hooked them up to appropriate buttons.

#interview-tips #vuejs #interview-questions #interview-preparation #interview #vue

Vue.js Interview Challenge  —Sorting Profiles
1.30 GEEK