---
layout: "default"
title: "sort"
description: "Swift documentation for func 'sort'."
keywords: "sort,func,swift,documentation"
root: "/v1.2"
---

<div class="declaration" id="func-sort-t_-comparable-inout_-t">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-sort-t_-comparable-inout_-t">func <wbr>sort&lt;T : Comparable&gt;(<wbr>inout: [T])</a>
        
<div class="comment collapse" id="comment-func-sort-t_-comparable-inout_-t"><div class="p">
    

    <h4>Declaration</h4>    
    <code 