Hello,
I built an app which shows record of students from a SharePoint list.
It has a filter option in a dropdown.

After filtering data

I want to create a new SharePoint list with the first 7 records after filtering the data and then create a new SharePoint list to save the another remaining 7 records.
For example:
I filtered the data with Group: white, Designation: AB, Section:005,
You can see there are 10 records.
Now I want to create a new SharePoint list and save 7 records to that SPList, and the remaining 3records will create a new SPList and save the record in it.
The frequency is 7.
Kindly help me out of this. I don't know what to do?