How can I sort this json object data alphabetically according to their names

Viewed 30
$.ajax({
    url: uriGetClientIntakeList,
    type: "GET",
    datatype: 'json',
    async: false,
    success: function (data) {
        $.each(data,
            function (index, item) {
                if ((index % topCount) === 0) {
                    pagerNum += 1;
                }
                var type = {
                    FirstName: item.FirstName,
                    LastName: item.LastName,
                    DOB: item.DOB,
                    SMSStatusText: item.SMSStatusText,
                    ContactNo: item.ContactNo,
                    ClientIntakeId: item.ClientIntakeId,
                    PageNumber: pagerNum,
                    clientId: item.clientId,
                    clientUrl: item.ClientUrl,
                    responseReceived: item.ReceivedResponseDate,
                    smsSentDateTime: item.SmsSentDate,
                    isContactChanged: item.IsContactChanged,
                    preferredModeOfContact: item.PreferredModeOfContact,
                    sentVia: item.SentVia,
                };
               
           

                var jtype = JSON.parse(JSON.stringify(type));
              
                $('#client-intake-list-item-template').tmpl(jtype).appendTo('#client-intake-list');
            });
    }
0 Answers
Related