<prompt> 10, 7, 4, 8, 13, 6Kuendeleza algorithm kwamba sort orodha ya integer.  <response>: Algorithm: SORTa:1. Find the length of the list a and store it in a variable n.2. Using a for loop that will iterate from i 0 to i n, perform the following actions: 3. Set a variable smallest to i 4. Use another for loop that iterates from j i1 to j n, perform these actions: i. Compare the value aj with with the value asmallest. If asmallest is greater than aj, then set smallest variable equal to j. 5. Keeping i the same, swap the value ai with asmallest6. Repeat step 3 to step 5 until the list is sorted. Implementation of the algorithm in Python:pythondef SORTa: n lena for i in rangen: smallest i for j in rangei1,n: if asmallest aj: smallest j ai, asmallest asmallest, ai return a Example:For example, using the function defined above, we can sort the list.pythona 10, 7, 4, 8, 13, 6SORTaThe output will be a sorted list:4, 6, 7, 8, 10, 13 