Following is the sample of my data which has to be sorted:
http://www.box.net/shared/npktk537id
What i need is that the data should first be sorted by family sr no., then in that family, first head of the family should figure (code 1), then his wife (2) and then the rest members of the family should be sorted by age.
Right now when i am sorting first by sr. no. and then by relation, grandson is coming before son and also daughter is coming before son even if the son is elder.
If i sort first by sr. no and then by age, then in case there is a father or mother of the head of the family or in some cases if wife is elder, i do not get the desired result.
http://www.box.net/shared/npktk537id
What i need is that the data should first be sorted by family sr no., then in that family, first head of the family should figure (code 1), then his wife (2) and then the rest members of the family should be sorted by age.
Right now when i am sorting first by sr. no. and then by relation, grandson is coming before son and also daughter is coming before son even if the son is elder.
If i sort first by sr. no and then by age, then in case there is a father or mother of the head of the family or in some cases if wife is elder, i do not get the desired result.